Concept networks and systems and methods for the creation, update and use of same to select images, including the selection of images corresponding to destinations in artificial intelligence systems

ABSTRACT

Systems and methods for concept based searching or recommendation are disclosed. More particularly, embodiments of a concept based approach to the search and analysis of data, including the creation, update or use of concept networks in searching and analyzing data are disclosed, including embodiments of the usage of such concept networks in artificial intelligence systems that are capable of utilizing concepts expressed by users to return or evaluate associated images.

RELATED APPLICATION(S)

This application is a continuation and claims a benefit of priority under 35 U.S.C. § 120 from U.S. patent application Ser. No. 16/150,975 filed on Oct. 3, 2018, by inventors Pan and Tosik and entitled “Concept Networks and Systems and Methods For the Creation, Update and Use of Same to Select Images, Including the Selection of Images Corresponding to Destinations in Artificial Intelligence Systems”, issued as U.S. Pat. No. 10,872,125, which claims a benefit of priority under 35 U.S.C. § 119(e) from U.S. Provisional Patent Application No. 62/568,604 filed on Oct. 5, 2017, by inventors Pan and Tosik and entitled “Concept Networks and Systems and Methods For the Creation, Update and Use of Same to Select Images, Including the Selection of Images Corresponding to Destinations in Artificial Intelligence Systems”, which entire contents of the above-referenced applications are hereby fully incorporated by reference herein for all purposes.

TECHNICAL FIELD

This disclosure relates generally to systems and methods for concept based searching. More particularly, this disclosure relates to embodiments of a concept based approach to the search and analysis of data, including the creation, update and use of concept networks in searching and analyzing data. Even more specifically, this disclosure relates to embodiments of systems and methods for the creation, update and use of concept networks in searching to increase the accuracy or relevance of search results. Additionally, this disclosure relates to the use of such concept networks in artificial intelligence systems, including travel or real-estate related artificial intelligence systems that are capable of utilizing concepts expressed by users to return associated destinations or corresponding images.

BACKGROUND

Despite the amount of information available in today's Internet environment, a number of problems exist. One of the most significant problems is how to locate and correlate data of interest that may be available at a single web site or distributed across a number of disparate web sites. In fact, in many cases the greater the amount of information available, the greater the difficulty in locating and correlating such information. These problems are exacerbated because, in many instances, web sites pertinent to a given context may be siloed with respect to their functionality or information and offer limited static searching interfaces. Thus, while it may be desirable to a user of such web sites to correlate information available at one web site with information available at another web site there is no way to accomplish such correlation that does not involve the manual location of data of interest and the tracking and correlation of such data across web sites by the user himself.

Within certain contexts such as travel or real-estate these problems may be particular prevalent and persistent, in no small part because of the historical development and current state of the Internet environment with respect to these contexts. As but one example, the travel industry has grown significantly over the past two decades. Despite the rise of the Internet and Internet based commerce over that same time period, travel service providers (e.g., airlines, hotels, rental car companies, tour providers, etc.) were relatively slow to migrate their offerings online. Though the travel service providers did eventually establish online presences, almost universally these travel service provider web sites function in the same manner. The web site provides an interface by which a traveler may provide a set of static itinerary data such as dates, point of origin, destination and number of travelers. The travel service provider web site then provides a listing of services corresponding to the traveler provided static data, such as a listing of available flights or hotel rooms.

With the proliferation of travel service providers, however, came a number of problems. Foremost among these problems was the amount of data that was now available to travelers. Specifically, travelers now could obtain travel service offerings through a large number of atomic web sites. So, for example, to obtain information on flights to a destination, a traveler would visit the web sites for each airline and obtain travel offerings (if any) for their particular itinerary. As there are literally thousands of airlines operating worldwide, it can be imagined what a herculean task it is to not only obtain this travel services data from each individual web site but, additionally, to compare the various travel service data amongst the various airlines. The same problems hold true almost no matter the type of travel service being provided.

To attempt to mitigate some of the issues with the myriad number of travel services, certain intermediary or aggregator web sites (e.g., Expedia, Hotwire, Travelocity, Kayak, etc.) have arisen. Essentially these sites functions as search aggregators, allowing travelers to search multiple independent travel service providers from a single site. The basic functionality of these aggregator sites is, however, still unchanged from the brute force methods of yore; the user must specify a set of static itinerary data through the interface of the search aggregator. The intermediary aggregator site, in turn, searches the data of each of the independent travel service providers for corresponding travel services associated with the traveler's static itinerary data and returns these results to the traveler through the intermediary site.

These intermediary aggregator sites have thus not alleviated the problems inherent in the implementation of travel service related web sites. This is the case at least because it cannot be sure that all the travel service related web sites are being searched by these intermediary sites, and because these intermediary sites are usually specific to one aspect of travel service (e.g., flights, hotels, etc.), or are only capable of searching one aspect at a time. Travelers must therefore still deal with the prospect of searching and vetting a large amount of travel service data from a variety of travel related web sites.

More importantly, however, a bigger problem remains: all of these travel related sites function in the same basic manner. A traveler must enter static itinerary data and the travel related web site returns travel services specific to that static data. These travel services related sites provide no insight to the user; they only return travel service options related to what the user already knows (e.g., their destination).

This situation compounds the already difficult problem of travel planning. The traveler must first determine such things as their intended destination before making these plans. Such determinations are not straightforward: often time the traveler has an idea or thoughts about what type of travel he would like to make, without any concrete destination in mind. The traveler must then engage in preliminary research even to determine their itinerary before engaging with the travel service related web sites. Given the number and variety of general travel related web sites, this is often a daunting and time consuming task.

While the travel related context serves as a particularly germane example of the problems of knowledge location or amalgamation, it will be understood that similar problems manifest in multiple contexts in the Internet world. As yet another example, in the real-estate related context it may be difficult to glean insight into real-estate or the real-estate market given the limited functionality of real-estate related web sites. Moreover, as real-estate is not a fungible good or service, the ability to obtain or correlate data on real-estate that is specific and pertinent to a particular user may be especially difficult.

What is desired, therefore, are systems that may dynamically provide personalized and insightful knowledge, including such systems that may be usefully applied in particular contexts, including for example, a travel related or real-estate related context.

SUMMARY

Attention is thus directed to the artificial intelligence systems disclosed herein. These artificial intelligence systems may utilize a chat driven interface that includes a chat portion and a display portion. The user may interact with the chat portion of the interface in a human understandable and comfortable manner (e.g., through natural language). The artificial intelligence system uses the context of the interactions in the chat portion of the interface to drive the presentation of content in the display portion of the interface such that the content presented in the display portion of the interface reflects the intents or concepts expressed in the chat portion of the interface (e.g., in the last interaction, or historically in previous interactions).

Specifically, according to embodiments, a user's current interaction with the chat portion of the display may be evaluated in association with the context of historical interactions to determine user preferences, including intents or concepts expressed by the user during the current, or previous, chat sessions. Using these user preferences, relevant content can be determined to present to the user through the display portion of the interface along with a relevant response interaction to present through the chat portion of the interface. The chat portion of the interface and the display portion of the interface are thus kept in synchronicity.

Additionally, and importantly, the content determined for presentation to the user in the display area is based on the user's intents or concepts expressed in a natural, human understandable manner (even those which may not be directly expressed by the user), not (solely) on static data provided by the user. Accordingly, the content presented to the user in the display portion of the interface may include content providing insights, alternatives, supplemental information or additional data of which the user was previously unaware at the outset of their interaction. The content displayed can be also be refined in an ongoing manner based on the concepts or intents expressed in a human understandable and comfortable manner by the user in the chat portion of the display. This type of interaction may enable a level of trust with users. In this manner certain tasks, such as those involved in travel planning or the like, may be reduced and even, in some instance, made enjoyable.

Moreover, using embodiments of these artificial intelligence systems a chat driven interface that includes a chat portion and a display portion may be distributed through a variety of channels. In particular, the chat driven interface may be presented in a display container (or unit) on a third party web page or proprietary web site or application alongside content provided by the third party web site. The display container may be of the size typically used to display a web based advertisement such as a 600×300 size container (often referred to as an ad container or ad unit). The chat driven artificial intelligence system may utilize the context of the third party web site, including for example, the entities (including concepts) and destinations expressed in or derived from the content of the third party web page or site to initialize and drive the chat driven interface.

In certain embodiments, the context of the web page or site on which the chat driven interface is presented may be used to select content from an advertiser to present in the display portion of the chat driven interface presented through such a container based chat driven interface. The advertiser content selected may be associated with the context of the third party web page or site and, additionally, may be refined through the user's natural language interaction with the chat portion of the chat driven interface. Thus, the initial state of the chat driven interface (based on the context of the third party web page or site in which it is presented) serves to attract the user's attention initially as it is related to the context of the content they be actively seeking on the third party web page. The artificial intelligence system may subsequently use the context of the interactions in the chat portion of the interface to drive the presentation of content in the display portion of the interface such that the content presented in the display portion of the interface reflects the concepts or destinations expressed by the user in the chat portion of the interface. To further enhance the suitability of such content, the context may also be used in association with other data such as the user's historical data (e.g., past interactions with the artificial intelligence system) or other aspects of the user's online presence.

Embodiments of the chat driven interface as presented may thus improve the efficiency of using a computing device by bringing together disparate data that may typically be accessed independently accessed (if at all) in disparate location into a chat driven interface which can be accessed directly in a single interface, whereby displaying selected data of interest in the display portion of the interface allows the user to see the most relevant data without having to navigate between sites, windows or separate interfaces. Accordingly, the speed of a user's navigation through various views and windows can be improved because embodiments of the chat driven interfaces as presented herein saves the user from navigating to the required sites, opening them up, and then navigating within those sites to enable the data of interest to be seen. Rather than paging through multiple screens or navigating around multiple web sites and manually correlating data of interest between these web sites, interactions with only a single chat driven interface may be needed to access desired data.

As one goal of such artificial intelligence systems may be to select and provide content reflective of the concepts or intents (including, for example, destinations) expressed by the user it may therefore be desirable in many instances to premise the search for items and related content on a knowledge base including concepts (referred to herein as a concept network). This is the case at least because the concepts that may be used for searching for items and related content are not necessarily expressly provided by the user. Instead, in many cases the concepts used for this searching may be derived from the natural language statements of the user (e.g., as provided in a chat interface) or other sources. Accordingly, the search for items for which content may be presented is based on those derived concepts, and is not a typical keyword driven search. Moreover, as the searching is based on these concepts, it may be desirable to not only determine items associated with concepts but, additionally, to determine a degree of affinity that these items have with those concepts, which also cannot be ascertained through a keyword based search.

To those ends, among others, attention is now directed to embodiments of concept networks (or nets) disclosed herein, and the creation, update and use of these concept networks, including their use in travel or real-estate related (or other types of) artificial intelligence systems to select and display one or more destinations. Embodiments of these concept networks may include a graph comprised of nodes and edges, where the nodes may include concept nodes and the edges may include relationships between these concepts nodes and other nodes, including other concept nodes or nodes associated with various entities. In a travel related context, for example, these nodes may represent items such as hotels, destinations, flights, attractions, activities, etc. The relationships indicated by the edges of the concept network may be assigned weights or scores indicating a degree of affinity between the nodes related by a relationship, including, for example, the degree of affinity between a concept represented by a concept node and an item node to which that concept node is related. Additionally, the relationships may be directional, such that they may only be traversed in a single direction, or have different weightings depending on the direction in which the relationship is traversed or the nodes related.

One particular embodiment of a concept network may be referred to as a trie. A trie can be thought of as a search tree data structure used to store a dynamic set or associative array of concepts. Specifically, in certain embodiments, the trie may be a concept network including a hierarchical set of concept nodes arrayed as a tree structure. Thus, each node at each level of the tree may be a concept node representing a concept that is a sub-concept of a parent concept node (as represented by the presence of an edge denoting that the node is a sub-node of the parent concept node) and where each node may have one or more sub-nodes each representing a sub-concept of that node. In this manner, a trie can be traversed from any node to any other node. Weights or scores (used interchangeably herein) can be generated between any two concepts in a trie. In one embodiment, such a weight may be based on the number of edges (or distance) between two concepts, the number of levels of the trie that must be traversed, the direction of traversal (e.g., either up the trie or down the trie) to navigate between the two nodes representing those concepts or other traversal or traversal distance based criteria.

In one embodiment, a concept network may be created or updated in any desired manner, including using a set of rules or a machine learning algorithm. These rules can take into account queries for particular concepts, a frequency of appearance of concepts or items, the number of times particular paths through the concept network are traversed when searching, or user interactions with content (e.g., associated with certain items or concepts) that is presented to the user. These rules can serve to add new concept nodes to the concept network, establish new edges (relationships) or weights between concept nodes and other nodes, or adjust the weights on existing relationships.

Embodiments of such a concept network can thus be searched to determine items (and related content such as images) associated with one or more concepts. Moreover, the degree of affinity between the concepts and items may be determined using the weights of the relationships in the concept network. In particular, concept networks including nodes representing travel related items such as hotels or destinations may be used in travel related systems to search for and provide these travel related items (and related content) associated with one or more concepts. In this manner, the travel related content related to the concepts expressed by, or determined from, a user may be utilized to provide insightful items and content to the user.

Specifically, in certain embodiments, searching interfaces to a concept network may be provided whereby one or more concepts may be provided. These searching interfaces may construct a search for a particular type of item (e.g., a destination or hotel) based on the concepts received and return an ordered list of items (and related content) based on the degree of affinity between the received concepts and the items as represented in the concept network. The determination of a degree of affinity between a concept and an item can be based on both the number of “hops” (i.e., distance) or intervening nodes along the path traversed between the node representing the concept and the node representing an item and the weights of each relationship in the path.

Utilizing embodiments of a concept network, such searches may accurately return real-world travel related items and related content associated with concepts to a user. Moreover, these concept networks may be automatically updated without user involvement based on a wide variety of criteria. Additionally, embodiments may employ certain types of relationships, types of concept networks, storage of the concept network, or divisions of the concept network, to achieve greater speed or reduce the processing power required or memory usage required in the storage, searching or other processing accomplished in association with such creating, updating, searching or storing concept networks.

In certain embodiments, embodiments use an API microservice capable of receiving concepts and returning destinations or receiving a destination and responding with concepts.

These, and other, aspects of the disclosure will be better appreciated and understood when considered in conjunction with the following description and the accompanying drawings. It should be understood, however, that the following description, while indicating various embodiments of the disclosure and numerous specific details thereof, is given by way of illustration and not of limitation. Many substitutions, modifications, additions, or rearrangements may be made within the scope of the disclosure without departing from the spirit thereof, and the disclosure includes all such substitutions, modifications, additions, or rearrangements.

BRIEF DESCRIPTION OF THE DRAWINGS

The drawings accompanying and forming part of this specification are included to depict certain aspects of the disclosure. It should be noted that the features illustrated in the drawings are not necessarily drawn to scale. A more complete understanding of the disclosure and the advantages thereof may be acquired by referring to the following description, taken in conjunction with the accompanying drawings in which like reference numbers indicate like features and wherein:

FIGS. 1A-1J are depictions of embodiments of an interface for use with embodiments of a chat driven artificial intelligence service used in a travel related context.

FIG. 2 is a block diagram of one embodiment of a computer network topology that includes an embodiment of a chat driven artificial intelligence system.

FIG. 3 is a block diagram of one embodiment of an orchestrator of a chat driven artificial intelligence system.

FIG. 4 is a block diagram of one embodiment of a computer network topology that includes an embodiment of a chat driven artificial intelligence system.

FIG. 5 is a block diagram of one embodiment of a computer network topology that includes an embodiment of a chat driven artificial intelligence system.

FIGS. 6A, 6B and 6C are depictions of a concept network.

FIG. 7 is a block diagram of one embodiment of a chat driven artificial intelligence system.

FIG. 8 is a flow diagram illustrating one embodiment of a method for searching for destinations.

FIG. 9 is a flow diagram illustrating one embodiment of a method for recommending destinations.

FIGS. 10A, 10B and 10C are an exemplary screenshot of an Elasticsearch query for the region of Cape Town.

FIGS. 11A and 11B are a screenshot showing an overview of an example DynamoDB database table.

FIGS. 12A and 12B are a screenshot showing details of an example DynamoDB database.

FIG. 13 is a flowchart depicting one example of a process for selecting and ranking images.

FIG. 14 is a flowchart depicting an embodiment of a method for ranking images.

FIG. 15 depicts an example of an image that has been analyzed to identify predicted concepts and probabilities.

FIG. 16 depicts a portion of an example trie concept network.

DETAILED DESCRIPTION

Embodiments and the various features and advantageous details thereof are explained more fully with reference to the non-limiting embodiments that are illustrated in the accompanying drawings and detailed in the following description. Descriptions of well-known starting materials, processing techniques, components and equipment are omitted so as not to unnecessarily obscure the embodiments in detail. It should be understood, however, that the detailed description and the specific examples are given by way of illustration only and not by way of limitation. Various substitutions, modifications, additions and/or rearrangements within the spirit or scope of the underlying inventive concept will become apparent to those skilled in the art from this disclosure.

Before discussing embodiments in more detail a brief description of the context in which embodiments can be utilized may be helpful. As mentioned above, travelers must usually determine such things as their intended destination or lodging before making travel plans. As mentioned above, a significant problem in today's Internet environment is how to locate and correlate data of interest that may be available at a single web site or distributed across a number of disparate web sites. These problems may be particularly pernicious as web sites pertinent to a given context may be siloed with respect to their functionality or information, and offer limited static searching interfaces. As an example of but one manifestation of such problems, in the travel related context travelers must usually determine such things as their intended destination or lodging before making travel plans. Such determinations are not straightforward: often time the traveler has an idea or thoughts about what type of travel he would like to make, without any concrete destination or lodgings in mind. The traveler must then engage in preliminary research even to determine their itinerary before engaging with the travel service related web sites. Similarly, in the context of real-estate, a tenant or purchaser may need to engage in a large amount of research regarding lodgings for rent or sale, prices, geographical areas, schools, or other pertinent topics before engaging with real estate web sites. Given the number and variety of general travel related or real-estate related web sites these are often daunting and time consuming tasks.

What is desired, therefore, are systems that may dynamically provide personalized and insightful knowledge, including such systems that may be usefully applied in a variety of contexts, including, for example, travel or real-estate related contexts.

To those ends, among others, attention is now directed to the artificial intelligence systems disclosed herein. These artificial intelligence systems may utilize a chat driven interface that includes a chat portion and a display portion. The user may interact with the chat portion of the interface in a human understandable and comfortable manner (e.g., through natural language). The artificial intelligence system uses the context of the interactions in the chat portion of the interface to drive the presentation of content in the display portion of the interface such that the content presented in the display portion of the interface reflects the intents or concepts expressed in the chat portion of the interface (e.g., in the last interaction, or historically in previous interactions).

Specifically, according to embodiments, a user's current interaction with the chat portion of the display may be evaluated in association with the context of historical interactions to determine user preferences, including intents or concepts expressed by the user during the current, or previous, chat sessions. Using these user preferences, relevant content can be determined to present to the user through the display portion of the interface along with a relevant response interaction to present through the chat portion of the interface. The chat portion of the interface and the display portion of the interface are thus kept in synchronicity.

Additionally, and importantly, the content determined for presentation to the user in the display area of the interface is based on the user's intents or concepts expressed in a natural, human understandable manner (even those which may not be directly expressed by the user), not (solely) on static data provided by the user. Accordingly, the content presented to the user in the display portion of the interface may include content providing insights, alternatives, supplemental information or additional data of which the user was previously unaware at the outset of their interaction. The content displayed can also be refined in an ongoing manner based on the concepts or intents expressed in a human understandable and comfortable manner by the user in the chat portion of the display.

Before delving into more details regarding the implementations of specific embodiments, it will be helpful here to now discuss embodiments of such artificial intelligence system that may be usefully applied in the context of travel. Embodiments of such systems may also be understood with reference to U.S. patent application Ser. No. 16/015,104 filed Jun. 21, 2018, entitled “Interaction Driven Artificial Intelligence System and Uses for Same, Including Travel for Real Estate Related Contexts” and U.S. patent application Ser. No. 16/015,112 filed Jun. 21, 2018 and entitled “Interaction Driven Artificial Intelligence System and Uses for Same, Including Presentation Through Portions of a Web Pages” which are hereby incorporated by reference herein in their entirety for all purposes.

Referring first then to FIGS. 1A-1D, embodiments of an interface for a travel related chat driven artificial intelligence system are depicted. For example in FIG. 1A, interface 100 may include a chat portion or area 110 and a display area 112. The user interacts with the chat driven artificial intelligence system through the chat area 110. In particular, a human understandable natural language conversation may occur in the chat area 110 such that the user may iteratively provide an interaction and the chat driven artificial intelligence system may provide an interaction prompt or a response interaction. These interactions can be exchanged between the user and the chat driven artificial intelligence system in the chat area 110.

The interactions taking place in the chat area 110 drive the display of content in display area 112 such that the display area 112 is maintained in synchronicity with the user's preferences as expressed (either explicitly or inherently) through the interactions in the chat area 110. In this embodiment, utilized with a travel related chat driven artificial intelligence system, the display area 112 includes a map area 120 and a card display area 130. The map area 120 displays a geographic area or one or more location points (e.g., destinations) associated with the user preferences expressed through interactions with the chat area 110, while the card display area 130 may display a number of display objects (i.e., “cards”), where each of the cards presents content associated with a particular entity (e.g., destination, flight, hotel, travel packages, etc.) associated with the user preferences expressed though interactions with the chat area 110.

The card display area 130 may be a slider or carousel as is known in the art such that it may contain multiple cards, a subset of which may be displayed at a given point. The user may scroll or flip through the various cards by interacting with card display area 130. The geographic area or location points displayed in map area 120 may be associated with the cards in the card display area 130 such that the geographic areas or locations associated with the cards in the card display area 130 may be depicted on a map displayed in the map area 120. For example, in FIG. 1A, the card 132 is associated with the destination “Cape Town” which is also displayed in the map displayed in map area 120. For example, in the example of FIG. 1A, the card 130 includes three images corresponding to “Phuket Province” and the card 132 includes three images corresponding to “Cape Town.” The images can be selected for display in any desired manner. Detailed examples of an image selection process are provided below.

Some embodiments of interface 100 may also have a static data entry area 140. This area 140 may allow a user to enter static data for an itinerary or may reflect data selected by a user (e.g., clicking on a particular destination card) that may include information such as dates or data ranges, number of travelers (e.g., adults or children) or a particular specified destination. The data provided by a user in the static data entry area 140 may be used in association with the interactions in the chat area 110 to drive content in the display area 112. Conversely, data displayed in the static display area 140 may be determined by the chat driven artificial intelligence system from interactions in the chat area 110. The static data entry area 140 may thus be populated by the chat driven artificial intelligence system based on these determinations.

It will be noted that the embodiments depicted in FIGS. 1A-1D are presented by way of example only. Other interfaces for other embodiments of chat driven artificial intelligent systems are possible and contemplated herein. For example, certain of these interfaces may present text or documents or a list of links of search results or other types of data based on interactions in the chat area or may display content differently. Additionally, such chat driven artificial intelligence interfaces may be presented through other channels, including through third party web pages or applications, even when such third party web pages or applications may have proprietary interfaces.

Turning then to FIGS. 1E-1H, embodiments of an interface for a travel related chat driven artificial intelligence system that may be presented through a third party web page, application or interface are depicted. Initially, a user may interact with an interface presented by the third party (e.g., a Facebook feed or news page) as depicted in FIG. 1E. A link 190 may be embedded in the third party interface, where the link may take the form of an advertisement or sponsored post by the operators of the chat driven artificial intelligence system. By accessing or interacting with the link the user may be taken to a proprietary interface, platform or application operated by the third party (e.g., Facebook Messenger or WhatsApp Messenger). A widget for the chat driven artificial intelligence platform (e.g., an application or a “bot” such as a Facebook Messenger bot) may execute within the context of the third party platform (e.g., in the example illustrated Facebook Messenger).

For example in FIG. 1F, interface 150 may include a chat portion or area 152 and a display area 154. The user interacts with the chat driven artificial intelligence system through the chat area 152. As shown in FIG. 1G, the user's interactions in the chat area 152 may appear in the display area 154, as is typical in messaging applications or the like. In particular, a human understandable natural language conversation may occur in the display area 154 based on interactions provided by the user in the chat portion 152 such that the user may iteratively provide an interaction and the chat driven artificial intelligence system may provide an interaction prompt or a response interaction in the display area 154. These interactions can be exchanged between the user and the chat driven artificial intelligence system using the chat area 152 and display area 154.

The interactions taking place in through the chat area 152 and display area 154 drive the display of content in display area 154 such that the display area 154 is maintained in synchronicity with the user's preferences as expressed (either explicitly or inherently) through the interactions entered in the chat area 152. In this embodiment, utilized with a travel related chat driven artificial intelligence system, the interactions presented through the display area 154 may include a card or carousel display area 156 associated with the user preferences expressed through interactions with the chat area 152 including a number of display objects (i.e., “cards”), where each of the cards presents content associated with a particular entity (e.g., destination, flight, hotel, travel packages, etc.) associated with the user preferences expressed though interactions with the chat area 152.

The card display area 156 may be a slider or carousel as is known in the art (in the case a card carousel as offered through the Facebook Messenger application) such that it may contain multiple cards, a subset of which may be displayed at a given point. The user may scroll or flip through the various cards by interacting with card display area 156 as shown in FIG. 1H.

Now looking at FIGS. 1I and 1J, embodiments of an interface for a travel related chat driven artificial intelligence system that may be presented in a container (e.g., an ad container) on a third party web page are depicted. Here, interface 170 may be presented in a third party web page, for example, by using an advertisement network infrastructure or by referencing an endpoint or location that provides the interface 170. Initially, a user may interact with an interface presented in the third party web page as depicted in FIG. 1I. A widget for the chat driven artificial intelligence platform may execute within the context of the container on the third party web page.

For example in FIG. 1I, interface 170 may include a chat portion or area 172 and a display area 174. The user interacts with the chat driven artificial intelligence system through the chat area 172. As shown in FIG. 1J, the user may interact in the chat area 172. In particular, a human understandable natural language conversation may occur in the chat area 172 based on interactions provided by the user such that the user may iteratively provide an interaction and the chat driven artificial intelligence system may provide an interaction prompt or a response interaction in the chat area 172.

The interactions taking place in through the chat area 172 drive the display of content in display area 174 such that the display area 174 is maintained in synchronicity with the user's preferences as expressed (either explicitly or inherently) through the interactions entered in the chat area 172. In this embodiment, utilized with a travel related chat driven artificial intelligence system, the interactions presented through the display area 174 may include a card or carousel display area 176 associated with the user preferences expressed through interactions with the chat area 172 including a number of display objects (i.e., “cards”), where each of the cards presents content associated with a particular entity (e.g., destination, flight, hotel, travel packages, etc.) associated with the user preferences expressed though interactions with the chat area 172. The user may scroll or flip through the various cards by interacting with card display area 176.

With these embodiments of interfaces for a chat driven artificial intelligence system in mind, including interfaces for a travel related chat driven artificial intelligence system, embodiments of a chat driven artificial intelligence systems that utilize and present such interfaces may now be discussed. While such embodiments are presented in the context of travel related chat driven artificial intelligence systems, it will be understood that this context is given by way of example only, and other embodiments of such chat driven artificial intelligence systems may be utilized in other contexts, such as real-estate or the like.

Moving then to FIG. 2, one embodiment of a computer network topology that includes an embodiment of such a chat driven artificial intelligence system (or “chat system”) is depicted. Chat system 200 may be accessed over a network 230 such as the Internet, an intranet, a Local Area Network (LAN), a Wide Area Network (WAN), a wireless or cellular network, a wireline network or some combination of networks) by users through applications at computing devices 202. Chat system 200 may be implemented or deployed, for example, on a cloud based platform such as Amazon Web Services, Microsoft Azure, Google Cloud, etc.

To facilitate these accesses, a chat interface 210 of the chat system 200 may provide an interface through which requests may be received and responded to over network 230. This chat interface 210 may be an Application Programming Interface (API) such as a Web services API, including, for example, a REpresentational State Transfer (REST or RESTful) API. In one specific embodiment, the chat interface 210 may be implemented as a single endpoint RESTful API such that each request to the chat interface 210 may be a call to this single interface that includes one or more query parameters. In another embodiment, the chat interface 210 may be implemented as two endpoints where one of the endpoints corresponds to an initialization or “init” endpoint (e.g., “address”/init) to set up the chat system widget at the user's device 202 or to establish or restore a session, and a “chat” endpoint (e.g., “address”/chat) for all other requests to the chat interface 210.

Requests to chat interface 210 are thus issued from user devices 202 based on user's interactions with the chat driven interface 214 rendered at their device 202. These requests may be received by the chat interface 210 and a response determined by the chat system 200 and provided back to the requestor through the chat interface 210. In one embodiment, for example, the chat system 200 may provide a web site, where that web site may be a standalone web site provided by the chat system 200 (e.g., through chat interface 210) or may be hosted as a micro site within another web site, such as a web site provided by a publisher from a publisher web server 204. These publishers may, for example, be travel service providers such as airlines, hotel providers, etc. who wish to leverage the functionality of the chat system 200 to improve the ability of users of their site to determine or locate offerings provided in association with that travel service provider. Thus, a user may visit a web site provided from the publisher (e.g., through the publisher web server 204). By accessing a link or being otherwise (re) directed or routed the user may enter a micro site (e.g., that may have the look and feel of the publisher's web site) that is provided by chat system 200.

Such a web site may therefore be accessed by the user at their device 202 using a web browser 206 on their device. When the user access the web site provided by the chat system 200 (e.g., as part of a micro site accessed from the web site provided by the publisher or as a standalone web site), a request is sent to the chat interface 210 which responds with a web page (or portion thereof) that can be rendered in the user's browser 206. In particular, when the web site provided by the chat system 200 is accessed, a chat system widget 208 may be provided in association with an interface returned to the user's browser 206 in response to a request (e.g., utilizing a script or embed tag). The chat system widget 208 may be, for example, JavaScript or other code that may be executed by the user's browser 206 or by the user's device 202. As the user interacts with the chat driven interface 214 provided by the chat system 200 through the user's browser 206, the chat system widget 208 may send requests to the chat interface 210 based upon the user's interaction with the chat driven interface 214. The chat system 200 receives these requests through the chat interface 210 and responds through the chat interface 210. These responses may include one or more objects (e.g., such as JavaScript Object Notation (JSON) objects). The chat system widget 208 may receive these responses and process the included objects to render or update the chat driven interface 214 in the browser 206.

In addition to being travel service providers such as airlines or hotel providers, publishers may also be almost any other third party providing a web site such as magazine or newspaper web site providers (e.g., Conde Nast, Travel and Leisure, Modern Bride, Surfing, etc.), blogs, retailers, etc. Thus, in addition to being provided as a micro site for a publisher, a chat driven interface 214 may be provided directly in the web pages 212 provided by these publishers. Specifically, in certain embodiments, a chat driven interface 214 may be presented in a display container (or unit) on a publisher's web page 212 alongside the content provided by the publisher on the web page. The display container may be of the size typically used to display a web based advertisement such as a 600×300 size container (often referred to as an ad container or ad unit).

Here, when the user access the web site provided by the publisher web server 204 at their device 202 using a web browser 206 on their device the publisher's web page 212 may be provided by the publisher's web server 204. A chat system widget 205 may be provided in association with a display container (e.g., a container defined by a div or iframe tag) in the publisher's web page 212. For example, the chat system widget 205 may be incorporated into the publishers web page 212 or otherwise provided by publisher's web server 204, or may be requested from chat system 200 when the web page 212 is loaded by browser 206 (e.g., using a script tag or the like). This chat system widget 205 may be JavaScript or other code that may be executed by the user's browser 206 or by the user's device 202. In one embodiment, the chat system widget 205 may include, all of, or a subset of, the functionality of chat system widget 208.

When the chat system widget 205 is loaded, it may send an initial request to the chat system identifying the publisher, the publisher's web page 212 or other data. The chat system 200 receives this request through the chat interface 210. The chat system 200 utilizes the context of the publisher's web page 212 (e.g., concepts or destinations associated with the web page 212) to select content (e.g., from an advertiser) and form a response with this content and an initial interaction to return to the chat system widget 205 through interface 210. These responses may include one or more objects (e.g., JSON objects) associated with the selected advertiser content. The chat system widget 205 may receive this response and process the included objects to render or update the chat driven interface 214 presented in the container on the publisher's web page 212. Thus, the initial state of the chat driven interface 214 presented on the publisher's web page 212 is related to the context of the content on the publisher's web page 212.

Subsequently, as the user interacts with the chat driven interface 214 provided by the chat system 200 on the publisher's web page 212 (e.g., has chat interactions with the chat portion of the interface), the widget 205 may send requests to the chat interface 210 based upon the user's interaction with the chat driven interface 214. The chat system 200 receives these requests through the chat interface 210 and responds through the chat interface 210. The chat system widget 205 may receive these responses and process the included objects to render or update the chat driven interface 214 in the publisher's web page 212.

The chat interface 210 may also be used to provide an interface for a standalone application 207 (or “app”) that resides on a user's device 202. This application 207 may be a standalone application affiliated with the chat system 200 such that when the application 207 is started up or launched on the device 202 the application 207 is configured to render a chat driven interface 214 and contact the chat system 200 through chat interface 210. In this instance, the application 207 is configured to send requests to the chat interface 210 based upon the user's interaction with the chat driven interface 214 presented by the application 207. The chat system 200 receives these requests through the chat interface 210 and responds, where the response includes one or more objects (e.g., JSON objects). The application 207 may receive this response and process the included objects to render or update the chat driven interface 214 presented through the application 207.

In certain embodiments, the chat interface 210 may also be used to provide an interface through a proprietary third party interface (e.g., web page) or application that resides on a user's device 202. Specifically, in many instances certain proprietary web based platforms (including certain social media platforms like Facebook or WhatsApp) may provide proprietary applications that may be accessed through their platform. One example of such an application or platform is Facebook Messenger. Chat interface 210 may be used to provide chat driven interfaces 214 through such proprietary platforms 216. In one embodiment, then, a link or other access point to chat system widget 203 may be provided through the proprietary platform. For example, in the context of a Facebook a sponsored post may be presented through a user's feed where the sponsored post may have a link or access point for chat system widget 203. Here, in one embodiment, chat system widget 203 may be a Facebook Messenger bot that may operate in the Facebook Messenger environment.

Thus, the chat system widget 203 may render chat driven interface 214 in the proprietary platform 216 and may utilize functionality of proprietary platform 216 (e.g., messaging functionality or the like), in conjunction with, or as part of, the chat driven interface. It may be realized, that in many cases, operators or providers of proprietary platforms 290 do not allow direct communications to or from other entities in the environment of their proprietary platform. Thus, in many cases, all communications within such a proprietary platform may pass through proprietary platform provider 290. Thus, for example, in the context of Facebook Messenger, communications pertaining to interactions with or other activity of the user with respect to chat system widget 203 and chat driven interface 214 may be communicated from proprietary platform provider 290.

Moreover, all communications to chat system widget 203 and chat driven interface 214 may have to originate from proprietary platform provider 290 and be formatted for consumption or rendering by proprietary platform 216. In order to operate in such an environment then, chat system 200 may include proprietary interface 280. Chat system widget 203 is adapted to issue calls to proprietary platform provider 290 that identify an endpoint associated with proprietary interface and which may identify a user, a message (e.g., a chat interaction) or other payload data that may identify other interactions. In response to this call, proprietary platform provider 290 may issue a call to the identified endpoint at proprietary interface 280 that identifies the user and includes the message (e.g., chat input) that the user provided in the messenger based chat interface. Such a call can also include a custom payload identifying other interactions with the chat driven interface 214, such as a button press or the like. The call from the proprietary platform provider 290 may utilize a globally unique identifier (GUID) that is unique to the proprietary platform provider 290.

Proprietary interface 280 may be adapted to receive communications from proprietary platform provider 290 and store or access proprietary interface session data 282 that comprises data associated with calls from proprietary platform provider 290 keyed by the GUID provided by proprietary platform provider 290. Thus, proprietary interface session data 282 includes data provided by the proprietary platform provider 290 and data determined or returned by the chat system 200 associated with the GUID provided by proprietary platform provider 290. When the proprietary interface 280 receives a call from proprietary platform provider 290, the proprietary interface 280 can use the GUID of the call to access the proprietary interface session data 282. Using any located proprietary interface session data 282 and the data in the call received from the proprietary platform provider 290, the proprietary interface 280 may form a request to the chat interface 210 in the form, and with parameters, expected by the chat interface 210.

These requests are received through the chat interface 210 and the chat system 200 determines a response that is provided back to the proprietary interface 280, where the response includes one or more objects (e.g., JSON objects). The proprietary interface 280 is adapted to take the response from the chat interface 210 and translate or format the response into a format expected by the proprietary platform 216 (e.g., for example, according to the Facebook Messenger API). This response can then be provided back to proprietary platform provider 290 which, in turn, provides it to proprietary platform 216 where it can be used to render or update the chat driven interface 214.

Thus, requests may be received at the chat interface 210 from chat system widgets 205, 208, proprietary interface 280, or application 207 and be processed by the chat system 200 to determine a response to return to the requesting widget 205, 208, proprietary interface 280, or application 207. The chat system widget 205, 208, proprietary interface 280, or application 207 thus sends a request to the chat interface based on a user's interaction with the chat portion of the chat driven interface 210. This request may therefore include, the unstructured or natural language (NL) data submitted by the user through the chat portion of the chat interface (e.g., a statement or question that may, or not, be properly formed language). The request may also include parameters having static or structured data associated with the user's interaction, such as data provided by the user through a static portion of the chat driven interface 214, data on other events associated with the chat driven interface 214 such as what portions of the page the user interacted with or clicked on (e.g., tracking data). The request may also include an identifier, such as a globally unique identifier (GUID) for the user as used by the chat system 200. Such an identifier may be stored in cookie data on the device 202 as is known in the art.

Chat system 200 may store historical session data 272 associated with the user in addition to current session data 274 associated with the requesting user. Historical session data 272 may include data on sessions that occurred with the user in the past (e.g., outside of some time window), while the current session 274 for the user may include data associated with requests that have been received within a particular most recent time window or that have taken place without the lapse of a certain amount of time. Each of the historical sessions 272 or current session 274 may include a collection of frames associated with the user where the frames are associated with requests received from that user during the corresponding session.

Each frame of a session (e.g., a historical session 272 or the current session 274) corresponds to the data associated with responding to a particular request received through the chat interface 210 during the session. A frame may thus include, the received request itself, data determined from the requests such as the parameters of the request, including the user interaction(s) with the chat system interface that generated the request, data determined based on the request and data included in the response. A frame may also include one or more JSON objects that were included in, or used to determine, the JSON objects included in the response to the received request. These JSON objects may be nested or may include one or more arrays of values.

As discussed the chat interface 210 may be a single endpoint or may at least two endpoints, thus if the chat interface is a single endpoint the request may be initially received at the chat interface 210 and passed to orchestrator 240. If the chat interface 210 implements two or more endpoints, one of the endpoints may correspond to an initialization or “init” endpoint to set up the chat system widget at the user's device 202 or to establish or restore a session, and a query endpoint for all other requests to the chat interface 210. Thus, at this point, if the request is an initialization request (e.g., at the init endpoint) a template 278 may be returned in response to the request. The templates 278 may be identified and accessed based on the identity of the context of the web page on which the chat driven interface 214 is to appear. Such an identity may be determined based on a template or other identifier included in the request received at the endpoint. The template may contain initialization configuration for the chat driven interface 214 such as the style, branding, colors, initial context, initial prompt, seed phrase or data for the chat portion of an interface, or other configuration of the chat driven interface.

In any event, when a request is received at chat interface 210 for an endpoint other than an init endpoint and passed to the orchestrator 240, the orchestrator 240 may obtain the user identifier from the received request and use the user identifier to obtain the historical session data 272 (if any) associated with the user identifier and the current session data 274 (if any) associated with the user identifier. In one embodiment, the historical session data 272 or current session data 274 may be stored in easily accessible database such as Redis such that the historical session data 272 or current session data 274 may be obtained as a value in the database associated with the key of the user identifier. If these is no current session data 274 associated with the user identifier, an entry in the data storage (e.g., Redis) associated with the user identifier received in the request may be created such that the data for the current session with the user may be stored.

The orchestrator 240 then processes the received request to generate a response to return. In one embodiment, the orchestrator 240 creates a working frame 276 associated with the user's request and populates the working frame 276 with the data as determined from the received request, including the user's interaction (e.g., natural language statement or chat interaction that caused the request to be generated), relevant data from previous frames in the current or historical sessions, the user identifier, etc. The orchestrator 240 can then process the user's chat interaction in the received request to extract the entities (including concepts or destinations) and intents associated with the user's interaction. This user interaction may be a natural language statement. Accordingly, the orchestrator 240 may employ one or more data extraction services to extract these entities and intents. Generally, these extraction services take as input a statement and apply natural language processing techniques to extract one or more entities or intents to return.

Specifically, in the embodiment depicted, extraction services 242 may include a set of services implemented on the chat system 200 to take as input a statement (e.g., a natural language statement), extract one or more entities (entity types) or intents from the statement and return the extracted entities or intents. These entities may include a set of concepts, including, for example, those related to geography or geographic regions, destinations, time, trip types, activities, amounts, units, names, colors, etc. In one embodiment, for example, entities may be travel related and include: Destination, AirportCodes, HotelAction, Hotel Brands, HotelsCombinedLocations, HotelStarRating, LocationType, Lodging, TravelActivities, Traveler and Triptype.

Intents may be classes that a statement (e.g., a natural language statement) falls into and that indicate how the chat system 200 should respond to a user interaction. These intents may include, find destination, find hotel, help, small talk, modify and replace or others. In particular, intents may be travel related and include AnsweringFollowUpQuestion, Book Hotel, ContactCallCenter, Default Fallback Intent, Default Welcome Intent, Email The User, EventViewingHotel, Find A Destination, Find A Hotel, Find a Package, FollowUpQuestion, Get Bots Name, Get Users Name, Greetings, Hotel Amenity Checker, Instructions, Modify (Add) Destination Search, Modify (Add) Hotel Search, Modify (Replace) Destination Search, Modify (Replace) Hotel Search and Out of Scope Add follow-up intent.

These extraction services 242 may be particular to entities or intents or even specific types of entities or intents and be configured to only extract that type of entity or intent from the received statement. For example, an extraction service 242 may be configured to extract only time. Such an extraction service may employ, for example, the Stanford Temporal Tagger (SuTime) or Duckling. Another extraction service 242 may be a trip type classifier that extracts a trip type from the user's natural langue statement (e.g., sole, group, couples, romantic, buddies trip, etc.). Yet another extraction service 242 may be configured to extract just concepts or just intents. Other extraction services 242 are possible and are fully contemplated herein.

Certain extraction services that chat system 200 utilizes may be implemented by third party providers. Extraction services interface 244 may allow such third party entity extraction services (not shown) to be queried. In particular, the orchestrator 240 can send a request containing a received user interaction (e.g., a natural language statement received through the chat portion of the interface) and any other desired data associated with the request to these third party extraction services through the extraction services interface 244. Any entities or intents (or other data such as a natural language response) extracted or determined by that third party entity extraction service can be received back through the extraction services interface 244 at orchestrator 240. In some embodiments, a third party extraction service may also return a natural language response to the user's interaction. This natural language response may be associated with an intent determined for the user's interaction. Examples of such third party extraction interfaces include, for example API.ai, IBM Watson Conversation, Google's Dialogflow or Amazon's Lex.

The data returned from each of the entity extraction services (e.g., either entity extraction services 242 or third party entity extraction services) may be saved into the working frame 276 associated with the current request. Once the orchestrator 240 has the set of entities (including concepts) and intents associated with the user's interaction as determined from the initially received request, the orchestrator 240 may use the entities (e.g., concepts) or intents as determined from the user interaction by the entity extraction services to determine content to provide in response to the request. In particular, the orchestrator may provide extracted concepts or intents to one or more data services. These data services may provide one or more travel related items (e.g., destinations, regions, hotels, etc.) in response, along with content related to those travel related items. The content may include, for example, image data or links for the travel related item, location related data, a description or ratings and review data for the travel related item, pricing data for the travel related item, or other types of content. This content (or a subset thereof) can then be provided by the orchestrator 240 in response to the initially received request through chat interface 210.

Data services 250 may include a set of services implemented on the chat system 200 to take as input an entity (such as a concept) and access concept data 252 of the chat system 200 to determine related data. The concept data 252 may associate travel related items such as destinations, regions, hotels with concepts. The data services 250 may thus take the concepts as inputs and use the concept data 252 to rank a set of travel related items and return the content for the top ranked set of travel related items. Thus, for example, a hotel data service 250 may return particular hotels associated with a concept (e.g. the content for those hotels) or may return particular hotels associated with a set of concepts and a region, etc. As another example, a destination data service 250 may return particular destinations associated with a concept or may return particular destinations associated with a set of concepts and a region, etc.

As with the extractions services discussed above, one or more data services that it is desired to utilize may be implemented by third party providers. Data services interface 246 may allow such third party data services to be queried. In particular, the orchestrator 240 may send requests including concepts to these third party data services through the data services interface 246. Any travel related items extracted by that third party entity data service can be received back through the data services interface 246 at orchestrator 240. An, example of such data services may, for example, include a weather data service.

The data (e.g., the travel related items, including content associated with the travel related items) returned from each of the data services (e.g., either data services 244 or third party data services) may be saved into the working frame 276 associated with the current request. Again, the data associated with each travel related item returned from each data service may be stored in the working frame 276 as JSON objects that may be nested or may include one or more arrays of values.

The orchestrator 240 can then process or manipulate the working frame 276 to create a response to the request from the chat system widget 205, 208, proprietary interface 280, or application 207, where the response includes a return frame having a subset of the travel related items returned by the data services and a responsive interaction. In particular, the orchestrator 240 may select one or more travel related items (and associated content) from the working frame 276 for including in the return frame for the user. The selection may be based on the entities (including concepts) and intents expressed in the current working frame 276, the current session 274 associated with the user, historical sessions 272 associated with the user or data returned by a data service.

In one embodiment, a publisher interface 248 may include one or more interfaces through which a publisher provided service may be accessed where that service can determine one or more offerings of travel related items provided by the publisher (e.g., the publisher providing the publisher web site) or data (e.g., pricing data) associated with the publisher's offerings. These offerings may include, for example, flights or hotels. Thus, the orchestrator may utilize this interface 248 to determine if the publisher has travel related offerings corresponding to the travel related items as determined from the data services and stored in the working frame 276, or pricing related to travel related items stored in the working frame 276. The availability or pricing of travel related offerings from the publisher may be utilized to select the travel related items to include in the response frame for the user. For example, if the travel related items included in the working frame include multiple destinations, only those destination served by flights from the publisher may be selected for inclusion in the response frame. Similarly, if the travel related items included in the working frame include multiple hotels, only those hotels affiliated or provided by the publisher may be selected for inclusion in the response frame.

Once the travel items and responsive interaction are selected they may be formatted into the response frame (e.g., as one or more JSON objects and associated arrays) and included in a response returned to the user returned through chat interface 210 (or returned to the proprietary interface 280 as discussed). Additionally, the working frame 276 utilized by the orchestrator in the creation of this response may be saved into the current session data 274 associated with the user.

When the chat system widget 205, 208 or application 207 at the user's computing device 202 receives this response, it may render the response to update the chat driven interface 214 presented to the user. Alternatively, as discussed, the proprietary interface 280 may take the response from the chat interface 210 and translate or format the response into a format expected by the proprietary platform 216. This response can then be provided back to proprietary platform provider 290 which, in turn, provides it to proprietary platform 216 where it can be used to render or update the chat driven interface 214.

In particular, the chat system widget 205, 208, application 207 or chat system widget 203 in association with proprietary platform 216 may present the response interaction (e.g., a natural language or text statement included in the response) in the chat portion of the chat driven interface 214. Additionally, the chat system widget 205, 208, application 207 or chat system widget 203 in association with proprietary platform 216, may render each of the travel related items (e.g., each JSON object associated with a travel related item) as a card to present in a card display area of the chat driven interface 214. Each of these travel related items may also have map data (e.g., map data points such as coordinate data such as latitude or longitude, etc.). Chat system widget 205, 208 or application 207 may update a map presented in the map display area of the chat driven interface 214 to display these travel related items in the map. In one embodiment, the map display area of the chat drive interface 214 may be provided by a third party provider such a Google Maps or MapBox. In this case, chat system widget 205, 208 or application 207 may call the third party provider with the map data included in the response and render the data returned by the third party provider in the map display area of the chat driven interface 214.

As both the responsive interaction presented in the chat portion of the interface 214 and the content presented in the display area of the chat driven interface 214 are based on the context of the human understandable interactions in the chat portion of the interface 214, the content presented in the display portion of the interface 214 reflects the intents or concepts expressed in the chat portion of the interface 214 and the chat portion of the interface 214 and the display portion of the interface 214 are kept in synchronicity. Moreover, as the user continues to interact with the chat portion of the chat system interface 214 the content displayed in the interface 214 can also be refined or updated in an ongoing manner by the chat system 200 based on the concepts or intents expressed in a human understandable and comfortable manner through these user interactions.

Looking now at FIG. 3, a more detailed depiction of one embodiment of the architecture of an orchestrator for use with embodiments of a chat driven artificial intelligence system is presented. It will be recalled from the above discussion that requests to a chat interface of a chat system may be issued from a user device based on a user's interactions with a chat driven interface of the chat system rendered at their device, including the user's human understandable natural language interactions with a chat portion of the interface. In particular embodiments, a chat system widget is executing on the user's device or browser in association with the chat driven interface. As the user interacts with the chat portion of the chat driven interface at his device (e.g., by typing in a natural language query or statement), the chat system widget system sends a request (or call) to the chat interface of the chat system.

This request may include the unstructured or natural language query or statement (referred to generally as a statement) submitted by the user through the chat portion of the chat interface. The request may also include parameters having static or structured data associated with the user's interaction, such as data provided by the user through a static portion of the chat driven interface, data on other events associated with the chat driven interface such as what portions of the page the user interacted with or clicked on (e.g., tracking data). The request may also include an identifier, such as a GUID, for the user. As the chat interface may provide a single endpoint for requests (e.g., from chat system widgets, browsers, etc.), the data of the request may be included as query parameters of the request received at the chat interface.

When the request is received at the chat system through the chat system interface it may be provided to orchestrator 300. When the request is received at the orchestrator it may initially be provided to the session retrieval module 302. The session retrieval module 302 may obtain the user identifier (e.g., the GUID) from the received request and use the user identifier to obtain historical session data (if any) associated with the user identifier and current session data (if any) associated with the user identifier. In one embodiment, the historical session data or current session data may be stored in easily accessible database 358 such as Redis such that the historical session data or current session data may be obtained as a value in the database using the user identifier as a key. If these is no current session data associated with the user identifier, an entry in the data storage (e.g., Redis) associated with the user identifier received in the request may be created such that the data for the current session with the user may be stored.

In one embodiment, this session data (e.g., historical session data or current session data) may include one or more objects. These objects may include, for example, XML objects, JSON objects or other types of objects. In particular, one embodiment that session data includes JSON objects that may include other JSON objects, which each might include a set of arrays. These JSON objects for the session data may include previous working frames used in replying to a user's previous requests or other data associated the user or the user's sessions. Thus, the session data for the user may include the statements submitted by the user during previous interactions with the chat portion of the chat system interface, the entities (including concepts or destinations) and intents associated with those interactions, the responsive interactions (e.g., responsive statements determined or returned to the user), the travel related items determined for the user in processing those previous interactions, or other data associated with the user or responding to a user's previous interactions.

The received request, including the query parameters and the session data obtained for the user, can then be provided to the NLP extraction module 304. The NLP extraction module 304 includes an NLP pre-processing module 306 that initially receives the request and the session data. The NLP pre-processing module 306 creates a working frame 320, which may be a JSON object, extracts the user statement (e.g., the unstructured natural language statement the user provided through the chat portion of the chat system interface) and stores the user statement in the working frame 320. Any other parameters of the user request (e.g., structured data, tracking data, the user's GUID, etc.) may also be stored in the working frame 320.

The NLP pre-processing module 306 can then determine if the request includes valid data such that it can be processed. This may include evaluating the user statement for content (e.g., if the user's statement is empty it is not valid) or checking any supplied dates, destinations of price ranges for valid ranges (e.g., within the next year, etc.). If the request is not valid a default responsive chat interaction (e.g., “I'm sorry, I didn't understand that,” “Can you tell me some more?”, etc.) may be stored as the response interaction in the working frame 320. Alternatively, the follow up module 312 may be provided with the working frame 320 which may determine and include such a default responsive chat interaction in the working frame 320.

If the request is valid, the NLP extractor 308 may send requests to a set of extraction services to extract entities and intents from the user statement. Generally, these extraction services are NLP extraction services that take as input a statement and apply natural language processing techniques to extract one or more entities or intents to return. In particular, the extraction services may include a set of internal services 334 implemented on the chat system or a set of external services 332 implemented by third parties that can receive requests including the statement (e.g., the user's natural language statement), extract one or more entities or intents from the statement and return the extracted entities or intent.

In particular, the NLP extractor 308 can send a request containing the user statement and any other desired data associated with the request to these extraction services through an interface 309. As a default, the user statement may be sent to each of the NLP extraction services 332, 334, however, in other embodiments a subset of these NLP extraction services 332, 334 may be determined and utilized. For example, only the internal services 334 may be utilized or only the external services 332 may be utilized. Alternatively, a combination of internal services 334 and external services 332 may be used. For example, in one embodiment, external NLP services 332 may be utilized for processing any “small talk”, while an internal NLP service 334 may be used for intents, concepts or entities.

The NLP extractor 308 may be configured to form a request to each extraction service according to a format utilized by that particular extraction service. For a particular extraction service, then, the NLP extractor 308 may populate the request with appropriate data from the working frame 320, including the user statement, the user GUID or other user session data if needed, or other data that may be used in a request to the extraction service 332, 334. The availability of certain data may determine whether a particular extraction service 332, 334 may be utilized. For example, if certain data needed to form a request to a particular extraction service 332, 334 is not available in the working frame 320 that particular extraction service 332, 334 may not be utilized.

In one embodiment, the NLP extractor 308 may have a different function for formulating API requests to each extraction service 332, 334. The NLP extractor 308 may utilize a set of extraction service rules to determine the extraction services to utilize and each of the functions for the determined extraction services 332, 334 may extract data from the working frame 320 to populate a request for the corresponding extraction service 332, 334. If a function cannot populate a corresponding request to the extraction service, that extraction service 332, 334 may not be utilized. Functions associated with certain extraction services 332, 334 that cannot be populate a corresponding request may trigger a response interaction requesting additional information in the follow up module 312 as will be discussed in more detail. Such a flag or response interaction may be placed in working frame 320.

Any entities or intents (or other data such as a natural language response to return) extracted or determined by an entity extraction service 332, 334 can be received back through the interface 309 at NLP extractor 308 and stored in the working frame 320 along with an identifier of the extraction service 332, 334 that returned that data. Additionally, the values returned by the extraction services 332, 334 may be normalized by NLP extractor 308 before they are stored in the working frame. For example, destinations or regions may be normalized for use by the chat system.

In particular, the return from an entity extraction service 332, 334 may include a JSON object with entities (e.g., values for specified entity types), intents or a responsive interaction. These returned JSON objects may be stored as nested JSON objects in the working frame 320. The entities may include a set of concepts, including, for example, those related to geography or geographic regions, destinations, time, trip types, activities, amounts, units, names, colors, etc. For example, travel related entity types may include: Destination, AirportCodes, HotelAction, HotelBrands, HotelsCombinedLocations, HotelStarRating, LocationType, Lodging, TravelActivities, Traveler and Triptype.

Intents may be classes that a statement (e.g., a natural language statement) falls into and that indicate how the chat system should respond to a user interaction. These intents may include, find destination, find hotel, help, small talk, modify and replace, FAQ, Email The User or others. Specifically, travel related intents may include Answering FollowUpQuestion, Book Hotel, ContactCallCenter, Default Fallback Intent, Default Welcome Intent, EventViewingHotel, Find A Destination, Find A Hotel, Find a Package, FollowUpQuestion, Get Bots Name, Get Users Name, Greetings, Hotel Amenity Checker, Instructions, Modify (Add) Destination Search, Modify (Add) Hotel Search, Modify (Replace) Destination Search, Modify (Replace) Hotel Search and Out of Scope Add follow-up intent. In another embodiment, intents may include Find A Destination, Find A Hotel, Small Talk, Terms of Service, FAQ, Hotel Amenities, Book a Hotel, and Ask For an Agent.

The extraction services 332, 334 may include a number of extraction services 332, 334 that may be general services for extracting entities (e.g., concepts) and intents from natural language statements or that may be specific services for extracting only entities or intents or specific types of entities or intents. In one embodiment, a conversation management or interface platform may be used as an extraction service. Examples of such conversation management or interface platforms include API.ai, IBM's Watson Conversation, Wit.ai., Converse.ai, etc.

In the main, these conversation management platforms function using machine learning trained on a set of intents or entities defined by the operators of the travel related chat system such that when a request including the user's natural language statement is submitted to the conversation platform the statement can be classified as having a particular intent and having values for a set of entities. These intents and entities may then be returned to the requestor by the conversation platform. The travel related chat system can thus use the conversation platform to extract intents and entities specified and defined by operators of the travel related chat system. Moreover, the conversation platform may be trained or otherwise configured to provide a responsive interaction associated with the intent into which the user's statement is classified. Thus, in addition to the intents and entities returned by such a conversation platform, a responsive interaction (e.g., a text statement to present to a user) may also be returned by a conversation management platform.

As but one example, in internal NLP extraction service 334 may be trained by providing a machine learning NLP tool with a set of training data annotated using the brat rapid annotation tool (BRAT). Other extraction services 332, 334 may include entity extraction services 332, 334 for extracting only entities or only concepts from natural language statements or an intent extraction service for extracting only intents from natural language statements. One extraction service may be configured to extract a TripType entity from a natural language statement. Another entity extraction service may be configured to extract and return a destination or geographic identifier (e.g., such as a region) from a natural language statements. To facilitate the extraction of geographic identifiers, an NLP extraction service 334 may employ a knowledge base 358 that correlates regions with points of interest or destinations. Thus, given points of interest, destinations, or regions, associated regions, points of interest or destinations may be determined. Other extraction services, interfaces and formats thereof are possible and are fully contemplated herein.

In order to further improve performance by reducing bandwidth usage or time to respond to a user interaction through the chat system interface, a caching framework may be employed between the NLP extractor 308 and the extraction services 332, 334. This caching framework may serve to cache requests to external extraction services so responses can be accessed without submitting the request to the extraction service itself. This cache framework can be keyed based on request data in order that the same request retrieves the response originally returned from the extraction service in response to a previously identical request from the cache.

Once the response are received from the extraction services 332, 334 and stored in the working frame 320, NLP post processing module 310 may determine canonical values for any different values for entity types or intents returned by different extraction services. The values for an entity type or intent selected as canonical values may be identified in the working frame.

In particular, one embodiment, the NLP post processing module 310 may include a set of extraction service rules 350 defining a hierarchy of trust for the set of entity extraction services. More specifically, in one embodiment, the set of extraction service rules 350 may define a hierarchy of trust associated with each entity type, defining for each entity type an order of extraction services, such that if multiple extraction services return values for an entity type, the rule may be utilized to select as the canonical value for that entity type the value returned from the highest ranked extraction service associated with that entity type. An intent rule may define a hierarchy of trust associated with each extraction service such that an intent returned by a higher ordered extraction service may be selected as a canonical intent before an intent returned by a lower ordered extraction service.

NLP post processing module 310 may thus process working frame 320 to determine if any entity type has different values returned by different extraction services for the user statement or different extraction services returned different intents for the user statement and apply one or more extraction services rules 350 to select canonical values for the entity types or intents. Extraction service rules 350 may also specify that an intent or value for entity type from a particular extraction service is to be utilized as a canonical value (or not utilized at all even if no other values for the entity type have been returned) regardless of values returned by other extraction services. These extraction services rules 350 may, for example, be implemented as machine learning based rules that may be refined over time.

For example, one extraction service may return a value of “romantic” for the entity type TripType while another extraction service may return a value of “business trip” for the entity type TripType. If the extraction service rule 350 associated with the entity type TripType orders the first extraction service higher than the second extraction service, the value “romantic” may be selected as a canonical value for the entity TripType. Once the canonical values for each entity type or intent are selected for any duplicative entity types or different intents.

Once the entities and intents (or other data) returned by the extraction services 322, 324 are stored in the working frame 320 and any canonical values for entities or intents identified in the working frame 320, the NLP post processing module 310 may determine if any data any of the user's previous frames in the current session should be included in working frame 320. If there is no previous frame in the current session (i.e. the user statement is the first user statement of the session) no further action is taken. If, however, one or more previous frame exist for the user in the current session (e.g., the user has been interacting with the chat portion of the chat system interface and the chat system interface has been updated in response to the those user interactions), the intent as determined for the current request (as stored in working frame 320) may be used to determine whether, and how, to populate the working frame 320 with any data from any previous frames of the current session.

In particular, a set of intent evaluation rules 352 may be used to populate the working frame 320 with data from a previous frame (if needed). For example, the intent as returned by the extraction service 332, 334 may be compared with one or more intents stored in the working frame to determine an intent to utilize (e.g., a canonical intent for the working frame). As an example of other intent evaluation rules 352, one rule may specify that a canonical intent may be a HotelAmenityChecker or BookHotel intent if a user has previously been shown hotels, otherwise any intent expressed in a current interaction may be overridden and the intent HotelSearch determined as a canonical intent and stored in the working frame 332. As another example of a intent evaluation rule, if any points of interest are extracted any intent expressed in a current interaction may be overridden and the intent HotelSearch determined as a canonical intent and stored in the working frame 332. As yet another example of a rule, if any explicitly provided search frame data (e.g., destinations/stars/travelers/concepts) can be extracted, an intent for a previous type of search may be determined as a canonical intent and stored in the working frame 332, regardless of any other non-search intents that may be extracted from the current interaction.

As another example, if the intent as stored in the working frame 320 is a NewDestinationSearch the values for entities as extracted by the extraction services 332, 334 may remain in the working frame 320. If the intent as stored in the working frame 320 is a ModifyDestinationReplace the entities from the immediately previous frame of the session may be used to populate the working frame (e.g., they may be copied into the working frame) except for the entity type of destination. For that entity type (destination), the value as returned by the extraction services may be kept and utilized in the working frame 320. If the intent as stored in the working frame 320 is a ModifyDestinationAdditive, the entities from the immediately previous frame of the session may be used to populate the working frame 320 (e.g., they may be copied into the working frame) including the values for the entity type of destination. Additionally, the value as returned by the extraction services for the entity type destination may be added to the values for the destination entity copied from the previous frame(s). Similar rules may also be applied to entity types related to concept, date, price, duration, NumberOfTravelers, or others.

Other rules may be pertinent to the environment in which a chat driven interface is utilized. For example, if the chat driven interface is used in association with a particular partner (e.g., enterprise) utilizing the chat system, these rules may be specific to that partner. For example, certain rules may evaluate any returned airport to determine if it is an airport served by the partner. Another rule may evaluate any returned regions to determine if one or more, or all, of the regions are, or are not, served by the partner, while another rule may check the specified dates to determine if the user is utilized dates that are too near or far in time. If any of these e partner specific rules are violated, an exception flag may be set in the working frame 320.

It will be understood that these rules are provided by way of example, other rules will be possible and are fully contemplated herein. Additionally, other techniques for the population of the working frame 320 with data from one or more previous frames of the session may also be utilized. For example, a supervised or unsupervised machine learning model may be utilized to determine what data to include (or replace) in the working frame 320 from previous frames in the current session of the user.

At this point then, working frame 320 may include at least a set of entities (e.g., entry types and value) and intents returned from the extraction services 332, 334, an identification of canonical values for each entity type or intent returned by the extraction services 332, 334 and, in some embodiments, at least one responsive interaction (e.g., natural language response to the user' interaction) determined by an extraction service 332, 334. The identification of the canonical values may include an identification of one or more most recent intents located from the most recently received user interaction.

The orchestrator 300 may then apply intent processing module 314 to the working frame to determine content to provide in response to the request received from the user based on entities (e.g., concepts) or intents as determined from the user interaction by the entity extraction services and stored in working frame 320. The intent processing module 314 may determine the intent (e.g., the canonical intent) associated with the received request as stored in the working frame 320. Using intent handling rules 368 specifying an action associated with an intent, the intent processing module 314 may pass control to the post-processing and response formatting module 316, determine a responsive interaction to include in the working frame 320 or determine one or more data services to call and what data to provide to each of the data services.

For example, if the intent is ContactCallCenter an intent handling rule 368 may have an action to include the call center telephone number in a responsive interaction to the user and store the responsive interaction in the working frame 320. If, however, the intent is Find A Destination, Find A Hotel, Find a Package, Modify (Add) Destination Search, Modify (Add) Hotel Search, Modify (Replace) Destination Search, Modify (Replace) Hotel Search the intent handling rules 368 may specify which data service 370 to call and what data from the working frame 320 to provide in the request to the data service 370.

In particular, the orchestrator 300 may provide extracted entities (e.g., concepts) or intents from the working frame 320 to one or more of the data services 370. Specifically, the intent processing module 314 may determine one or more data services 370 to call based on a canonical intent expressed in the working frame 320 and may form a request to the data service 370 that includes a canonical entity (e.g., canonical concept) determined for the working frame 320. These data services 370 may provide one or more travel related items (e.g., destinations, regions, hotels, etc.) in response, along with content related to those travel related items. The content may include, for example, objects with image data or links for the travel related item, location related data, a description or ratings and review data for the travel related item, pricing data for the travel related item, or other types of content.

In certain embodiments, data services 370 may include a set of services (implemented on the chat system or by external third parties) to take as input an entity (such as a concept or destination) and access entity data related to the entity (e.g., concept or destination) to return content associated with the entity. The entity data may associate travel related items such as destinations, regions or hotels with concepts or destinations. The data service 370 can then respond to the request with content associated with content related to the input entity (e.g., concepts or destinations). Thus, for example, a hotel data service 370 may return particular hotels associated with a concept or may return particular hotels associated with a set of concepts and a region, etc.

Specifically, in one embodiment, a hotel service 370 may take an identifier of a publisher or partner (e.g., advertiser) with whom the chat system is being utilized (which may be included in the initially received request or working frame 320), a region or a set of concepts. The hotel service 370 may then determine the hotels to return (e.g., those hotels associated with the publisher or which the publisher serves, hotels associated with an advertiser, etc.) based on the publisher identifier, the region or the set of concepts. The hotel service 370 may return a set of hotel objects (e.g., JSON objects) with hotel name, images, concepts, scores, etc. Each of the hotel objects returned by the hotel service 370 may get stored in the working frame 320.

As another example, a destination data service 370 may return particular destinations associated with region, destinations associated with a concept or may return particular destinations associated with a set of concepts and a region, etc. In particular, in one embodiment, a destination service 370 may take an identifier of a publisher or partner (e.g., advertiser) with whom the chat system is being utilized (which may be included in the initially received request or working frame 320), a region or a set of concepts. The destination service 370 may then determine the destinations to return (e.g., those destinations associated with the publisher or which the publisher serves or destinations associated with an advertiser) based on the publisher identifier, the region or the set of concepts. The destination service 370 may return a set of destination objects (e.g., JSON objects) with destination name, images, concepts scores, etc. Each of the destination objects returned by the destination service 370 may get stored in the working frame 320.

After the intents have been processed by the intent processing module 314, the working frame 320 now has a set of objects (e.g., destination objects or content objects) that may be presented as content to the user along and in some cases may have a responsive interaction to present to the user (e.g., that was determined by an extractor service 332, 334 such as in the case of a Small Talk intent).

Follow up module 312 may then evaluate the entities and intents of the working frame to determine what responsive interaction, if any, should be returned as a responsive interaction to the user. This determination may include a determination whether more information is needed from the user or if a follow up question should be returned as a responsive interaction to the user. Such a follow up question may be desired to, for example, obtain additional information from the user to augment or conduct a search for content to return. For example, this type of information may be desired, if the working frame 320 does not include data on time or date ranges, possible amount to spend, possible regions or destinations, etc.

In particular, the follow up module 312 may include a set of follow up rules 366 for determining if a follow up question (e.g., a responsive interaction) to obtain more data from the user should be asked (e.g., returned to the user as a responsive interaction). These rules 366 may be rules for evaluating any frames of the current session data for the user to determine the entities and intents of the previous frames to determine if enough data is present or the responsive interactions and user interactions of these previous frames. A rule 366 may, for example, have a trigger that looks for the absence of particular data (e.g., a value for a particular entity type) and an action that includes a follow up question to include as a responsive interaction if the particular data is not present in the working frame, or an action that populates a default value for the entity type or other data in the working frame 320. For example, certain default values may be: adults: 2, children: 0, departureAirport: airport_closest_to_ip∥‘JFK’, cabin: ‘Economy’, const DEFAULT_DURATION_DAYS=14; DEFAULT_START_DATE=100; //(days from now) or the like.

The rules 366 may be prioritized such they are evaluated in an order so the most important or germane follow up question may be asked. The rule(s) 366 to apply may be determined based on the intent (e.g., the canonical intent) associated with the working frame 320. These rules 366 may also determine if default values for entities should be populated in the working frame 320 if they do not currently exist in the working frame 320. If the application of the rules 366 results in a determination that a follow up question should be asked to the user as a responsive interaction, a follow up question object (e.g., a JSON object with a responsive interaction that include the follow up question) may be generated and included in working frame 320. Such follow up questions may include: “Who will you be traveling with?”, “How many adults and children will be traveling?”, “When would you like to travel?”, and “What is your budget for this trip?” Additionally, the determination of a responsive interaction may be based on any exception flags set in the working frame. For example, if working flags related to specified destinations not being served by a partner are set, a particular response interaction may be determined and added to the working frame 320.

The orchestrator 300 can now process or manipulate the working frame 320 using post-processing and response formatting module 316 to create a response to the request from the chat widget on the user's system, where the response 376 includes a response frame 374 including a set of content objects for presentation to the user through the display portion of the chat system interface and a responsive interaction 376 for presentation through the chat portion of the chat system interface.

Initially, post-processing and response formatting module 316 may save the working frame 320 to the session data 358 associated with the user corresponding to the initially received request. The post-processing and response formatting module 316 may then select one or more content objects from the working frame for including in the response frame 374 for the user. The selection may be based on the entities (including concepts) and intents expressed in the current working frame 320, the current session associated with the user, historical sessions associated with the user or data returned by a data service 370.

Once the content items and responsive interaction are selected they may be formatted into the response frame 374 (e.g., as one or more JSON objects and associated arrays) and included in a response 376 to be returned to the user. This response frame may thus include a JSON object corresponding to cards that are to be displayed in the display portion of the interface (e.g., card display area) and a chat object that includes data for rendering in the chat portion of the window. The cards or response frame 374 may also include map data for calling map service to render a map with certain geographical locations or regions in the display portion of the interface (e.g., a map display area).

When the chat system widget at the user's computing device receives this response 376, it may render the response 376 to update the chat driven interface presented to the user. In particular, the widget may present the response interaction (e.g., a natural language or text statement included in the response) in the chat portion of the chat driven interface. Additionally, the chat system widget may render each of the travel related content objects (e.g., each JSON object associated with a travel related content item) as a card to present in a card display area of the chat driven interface. Each of these travel related items may also have map data (e.g., map data points such as coordinate data such as latitude or longitude, etc.). Chat system widget may update a map presented in the map display area of the chat driven interface to display these travel related items in the map.

As both the responsive interaction presented in the chat portion of the interface and the content presented in the display area of the chat driven interface are based on the context of the human understandable interactions in the chat portion of the interface, the content presented in the display portion of the interface reflects the intents or concepts expressed in the chat portion of the interface and the chat portion of the interface and the display portion of the interface are kept in synchronicity. Moreover, as the user continues to interact with the chat portion of the chat system interface the content displayed in the interface can also be refined or updated in an ongoing manner by the chat system based on the concepts or intents expressed in a human understandable and comfortable manner through these user interactions.

These chat driven artificial intelligence systems and associated interfaces may thus have a wide range of applicability and usefulness, especially in travel related contexts. As noted, the travel industry has grown immensely in the previous two decades or so, facilitated in no small part by the growth of the Internet. There are therefore a large number of web sites or other locations on the Internet that include travel related content. These sites may be directly travel related, such as web sites or travel related service providers (e.g., hotel or airline providers) or travel related publications (e.g., magazines such as Conde Nast or Travel and Leisure), while other web sites may be indirectly related to travel, such as web sites related to activities that may be particularly associated with certain destinations (e.g., publications related to scuba diving, sailing, skiing, food, etc.) or blogs or web sites related to the travels of individual travelers or certain groups.

Accordingly, as discussed above, in certain embodiments a chat driven artificial intelligence system may be utilized to provide a chat driven interface including a chat portion and a display portion within a web site provided by a third party publisher or partner (e.g., provided by a party different than operators of the chat system). In particular, such a chat driven interface may be presented in a display container (often referred to as an ad container or ad unit) on a publisher's page alongside travel related content provided by the publisher's web site. The display container may be of the size typically used to display a web based advertisement such as, for example a 600×300 size container, or the like (other sizes are imaginable and are fully contemplated herein). The chat driven artificial intelligence system may utilize the context of the publisher's web site, including for example, the entities (including concepts and destinations) expressed in the content of the publisher's web page to initialize and drive the chat driven interface, including the content presented in the display portion of the interface.

In particular, in certain embodiments, the content selected for presentation in the display portion of the chat driven interface may be an advertiser's content (e.g., where that advertiser may be unaffiliated with the providers of the publisher's web site). Specifically, the chat driven system may include an advertiser data store defining concepts, destinations or other entities associated with advertisers or the advertisers' content. An advertiser (or particular advertiser content) may be selected based on a matching of the concepts, destinations or other entities of the content on the publisher's web page and the concepts, destinations or other entities associated with the advertiser. Content for the selected advertiser may then be returned and presented in the display portion of the chat driven interface displayed in the ad container on the publisher's web page. The chat system may subsequently use the context of the interactions in the chat portion of the interface (e.g., the dialogue) displayed in the ad unit to drive presentation of that advertiser's content in the display portion of the interface presented in the ad unit of the publisher's web page such that the advertiser's content presented in the display portion of the interface reflects the intents or concepts expressed by the user in the chat portion of the interface.

Referring now to FIG. 4, one embodiment of a computer network topology that includes an embodiment of a chat driven artificial intelligence system (or “chat system”) for presenting a chat driven interface in a display container on a publisher's web page is depicted. Chat system 400 may be accessed over a network 430 such as the Internet, an intranet, a Local Area Network (LAN), a Wide Area Network (WAN), a wireless or cellular network, a wireline network or some combination of networks) by users or applications at computing devices 402 and be implemented or deployed, for example, on a cloud based platform. To facilitate these accesses, a chat interface 410 of the chat system 400 may provide an interface through which requests may be received and responded to over network 430.

These accesses may be requests from a chat system widget 405 associated with a publisher's web page 412. In particular, when a user access the web site provided by the publisher web server 404 at their device 402 using a web browser 406 on their device the publisher's web page 412 may be provided by the publisher's web server 404. A chat system widget 405 may be provided in association with a display container in the publisher's web page 412.

When the chat system widget 405 is loaded, it may send an initial request to the chat system 400 identifying the publisher, the publisher's web page 412 or other data. The chat system 400 receives this request through the chat interface 410 and initializes the chat driven interface 414 (including the chat portion and the display portion of the interface 414) displayed in the container on the publisher's web page 412 based on the context of the web page 412. The chat system widget 405 may subsequently send requests to the chat interface 410 based on a user's interaction with the chat portion of the chat driven interface 414. These requests may therefore include, the unstructured or natural language data submitted by the user through the chat portion of the chat interface. The chat system 400 receives these requests through the chat interface 410 and responds through the chat interface 410. The chat system widget 405 may receive these responses and process the included objects to render or update the chat driven interface 414 in the publisher's web page 412. As both the responsive interaction presented in the chat portion of the interface 414 and the content presented in the display area of the chat driven interface 414 are based on the context of the human understandable interactions in the chat portion of the interface 414, the content presented in the display portion of the interface 414 reflects the intents or concepts expressed in the chat portion of the interface 414 and the chat portion of the interface 414 and the display portion of the interface 414 presented in the context of the publisher's web page 412 are kept in synchronicity.

Specifically, in one embodiment, each publisher 494 where it is desired to display a chat driven interface from the chat system 400 in a display container on their web site may be assigned a publisher identifier by the operators of the chat system 400. The publisher web site index 482 may associated the identifier for the publisher with a set of URLs of the publisher's web site. Each of the URL's of the publisher's web site is, in turn, associated with entities (e.g., concepts or destinations, etc.) related to the content accessible at that URL (e.g., the publisher's web content 408 presented on the web page accessible at that URL).

To facilitate the collection of data on publishers' web sites, the chat system 400 may include site indexer 492. Each publisher's web site includes a set of URLs that may be accessed at that publisher's domain. The site indexer 492 may operate periodically (e.g., nightly, weekly, etc.) to index a publisher's web site by accessing the URLs associated with the publisher's web site and “scraping” or otherwise obtaining the publisher's web site content 408 that is presented on each of the publisher's web pages (e.g., the content accessed at a particular URL). When the content is obtained for a publisher's web page, as this content usually includes natural language, the site indexer 492 may extract entities (e.g., concepts or destinations, etc.) from the content 408 for the publisher's web page. The site indexer 492 can employ the data extractions services 442 or interfaces 444 to take as input the content scraped from the publisher's web page to extract one or more entities (entity types) from the content and return the extracted entities to the site indexer 492. These entities may include a set of concepts, including, for example, those related to geography or geographic regions, destinations, time, trip types, activities, amounts, units, names, colors, etc. The data returned from each of the entity extraction services may be saved into the publisher web site index 482 in association with the URL for that publisher's web page.

Advertiser data store 484 may include data associated with advertisers who desire to present content through a chat driven interface in a display unit on a publisher's web page (e.g., where the publisher may be completely unaffiliated with the advertiser). Each advertiser which it is desired to display a chat drive interface form the chat system 400 on their web site may be assigned an advertiser identifier by the operators of the chat system 400 and data associated with the advertiser stored in the advertiser data store 484. This advertiser data 484 may include an identification of the publishers' web sites on which the advertiser's content may be displayed (e.g., because either a publisher desires that the content of a particular advertiser not be displayed in association with their web site or an advertiser desires that their content not be displayed on a particular publisher's site, etc.). The advertiser data 484 may also include entities (e.g., concepts or destinations) associated with an advertiser, an identification of particular advertiser content and entities, or one or more rules associated with the advertiser, such as a rule defining a business relationship (e.g., a compensation or payment mechanism by which the advertiser pays or otherwise compensates the operators of the chat system 400 in association with the display of the advertisers content on a publisher's web site, etc.).

Accordingly, when a user at device 402 accesses a publisher's web page 412 through browser 406 executing on his device (e.g., by typing a URL associated with publisher's web site into the browser's address bar, clicking on a link in another web page, etc.), a request for the URL associated with a particular web page of the publisher's web site is sent to the publisher's web server 404 from the user's browser 406. The publisher's web server 404 constructs a page 412 to return to the user's browser using the publisher's website content 408. The constructed page may include a display container (e.g., defined by a div or iframe tag) associated with a chat system widget 405. The display container may be of the size typically used to display a web based advertisement such as, for example a 600×300 size container, or the like. The chat system widget 405 may be incorporated directly into the publisher's web page 412 being constructed (e.g., the script code for the chat system widget 405 may be include in the page 412 as returned from the web server 404) or a script tag referencing a URL from which the widget 405 may be requested may be included in the web page in association with the display container. The constructed web page 412 is returned from the publisher's web server 404 to the user's browser 406 where the page 412 is loaded in the user's browser and the associated chat system widget 405 is executed by the browser 406 or the user's device 402.

When the chat system widget 405 is initially executed (e.g., when the chat system widget is initially loaded by the browser 406 as defined by an “onload” attribute) it may send an initial request to the chat system interface 410 of the chat system 400. This request may include the URL of the publisher's web page or other data, including for example, an identifier for a user or device 402 (e.g. a GUID for the user or device), the user's location, IP address, or cookie data associated with the user or user's browser. This cookie data may include, for example, data from cookies associated with the publisher's web site or cookies stored and maintained by the chat system 400.

This initial request may be received by the chat interface 410 of the chat system 400. As discussed, the chat interface 410 may be a single endpoint or may have two or more endpoints (e.g., an init endpoint and a chat endpoint), thus when the initial request is received at the chat interface 410 (e.g., an init endpoint), the chat interface may determine from the format of the request (e.g., the set of query parameters associated with the request) that the request is an initial request from a chat system widget 405 being used on a publisher's web page 412. If the chat interface 410 determines that the request is an initial request from the chat system widget 405 on a publisher's web page 412 it may provide that initial request to ad controller 486.

Ad controller 486 may receive this initial request (or the parameters of the initial request) including the URL of the publisher web page 412 or the identifier of the publisher. The ad controller 486 may utilize the URL of the publisher's web page 412 (or the publisher identifier) as an index into the publisher's web site index 482 to obtain the data associated with the URL of the publisher's web page 412, including the entities (e.g., concepts or destinations) associated with the publisher's web page 412. In one embodiment, the ad controller 486 may utilize a user (or device) identifier (if one is provided) to access any historical sessions 472 associated with the user. The ad controller 486 may determine one or more entities (e.g., concepts or destinations) associated with the user from these historical sessions 472 (e.g., the most recent destinations or concepts returned or associated with the user in the most recent historical session 472).

Using the entities (e.g., concepts or destinations) associated with the publisher's web page 412 (as obtained from the publisher web site index 482), the ad controller 486 may select an advertiser or associated advertiser content, to provide in response to the initial request so the selected advertiser's content can be presented to the user in the chat interface 414 in the display container on the publisher's web page 412. In particular, the ad controller 486 may include a set of ad selection rules to select the advertiser or advertiser content from the advertiser data store 484. These rules may first be applied to determine the set of advertisers that are allowed to be displayed on that publisher's web site (including the publisher's web page 412). This set of allowable advertisers can then be scored on relevance by comparing the entities associated with the publisher's web page 412 with the entities associated with the advertisers or the advertisers' content. This score may be a similarity score based on the similarity of the concepts, destinations or other entities stored for the publisher's web page 412 and for the advertisers or advertisers' content.

The allowable advertisers can then be ranked based on their relevance scores and, in one embodiment, the amount or percentage of compensation associated with the advertiser (e.g., the amount or percentage the advertiser will pay operators of the chat system 400 when their content is displayed on a publisher's web site). The top ranked advertiser can then be selected. In one embodiment, these ad selection rules may be implemented as a machine leaning algorithm that may select the advertiser or content based on, for example, the concepts or destinations associated with the publisher's web site, the advertiser content or that the user subsequently selects or interacts with, the depth of interaction with the chat based interface 414 after such advertiser content is presented, or other criteria.

Once the advertiser is selected, advertiser content and a chat interaction may be determined and returned to the user. In one embodiment, the advertiser content and chat interaction may be determined by ad controller 486 when determining the selected advertiser. In particular, the advertiser data store 484 may include content for travel related items (e.g., flights, hotels, packages, etc.) associated with the selected advertiser. These travel related items for the advertiser may also have associated entities (e.g., concepts and destinations). Thus, the travel related items for the selected advertiser may be (e.g., individually) scored based on the based on the similarity of the concepts, destinations or other entities stored for the publisher's web page 412 and for the selected advertiser's travel related items. The travel related items may then be ranked based on the determined score and one or more travel related items for the advertiser selected. The content for the selected travel related items may be used to form a response with this content to return to the chat system widget 405 through interface 410. This response may include one or more objects (e.g., JSON objects) associated with the selected advertiser content. Additionally, an initial interaction for presentation in the chat portion of the chat system interface may be determined and included in the response. This initial interaction may be associated with, for example, a destination, a travel related item, the selected advertiser, or may be a general greeting. Other interactions are possible and are fully contemplated herein.

In such an embodiment, in the event that adequate content for the determined advertiser cannot be determined default content and a default initial interaction may be determined. This default content and default interaction may, for example, be stored in the advertiser data store 484 in association with the advertiser identifier. The default content may, for example, be a logo or picture with a default interaction of “Ask me about [publisher's] destinations!” or the like.

The chat system widget 405 may receive the response from the ad controller 486 and process the included objects to render or update the chat driven interface 414 presented in the container on the publisher's web page 412 by presenting the content for the travel related items (or default content) in the display portion of the interface 414 and the initial (or default) interaction in the chat portion of the interface 414.

In another embodiment, ad controller 486 may return an advertiser identifier and a set of entities (e.g., concepts and destinations) to the chat system widget 405 in response to the initial request from the chat system widget 405. When the chat system widget 405 receives this response, the chat system widget 405 may initiate a subsequent request to the chat system interface 410 with the advertiser identifier and the set of entities returned from the ad controller 486. The chat system interface 410 may receive this subsequent request and determine that the request should be provided to the chat orchestrator 440. The chat orchestrator 440 may process this request substantially as detailed above to select content from the identified advertiser and form a response with this content and an interaction to return to the chat system widget 405 through interface 410. These responses may include one or more objects associated with the selected advertiser content. The chat system widget 405 may receive this response and process the included objects to render or update the chat driven interface 414 presented in the container on the publisher's web page 412 by presenting the content for the advertiser's travel related items in the display portion of the interface 414 and the interaction in the chat portion of the interface 414.

In the manner described above, embodiments may utilize the entities (e.g., concepts and destinations) of the publisher's web site content 408 to initialize a chat driven interface 414 presented in a display container included in that publisher's web page 412, including initialization with contextual advertiser content. Moreover, once the chat driven interface 414 presented in the display container on the publisher web page 412 is initialized (e.g., initial content or an initial interaction for the chat portion is presented in the interface 414) the chat system widget 405 may interact with the chat system 400 substantially as described above such that the chat orchestrator 440 may process these subsequent requests to return the selected advertisers content and responsive interactions to the user through the chat driven interface 414 presented in the display container.

As in many cases, there may be established and extensive networks for the distribution of content through ad containers on publisher's web pages, and publishers may already be extensively familiar and integrated with such ad distribution networks, in certain embodiments these ad distribution networks may be leveraged to present chat driven interfaces in display container's on a publisher's web page. In particular, such a chat driven interface may be presented in a display container (often referred to as an ad container or ad unit) on a publisher's page alongside travel related content provided by the publisher's web site. The display container may be of the size typically used to display a web based advertisement such as, for example a 600×300 size container, or the like (other sizes are imaginable and are fully contemplated herein). The chat driven artificial intelligence system may utilize the context of the publisher's web site, including for example, the entities (including concepts and destinations) expressed in the content of the publisher's web page to initialize and drive the chat driven interface, including the content presented in the display portion of the interface.

Moving then to FIG. 5, one embodiment of a computer network topology that includes an embodiment of a chat system for presenting a chat driven interface in a display container on a publisher's web page using an ad distribution network is depicted. Again, chat system 500 may be accessed over a network 530 such as the by users or applications at computing devices 502 where this access is facilitated through chat interface 510. Here, chat system 500 may provide a publisher interface 503 that offers a set of interface where a publisher 594 or user associated therewith may define the “look and feel” or associated content or initialization of the chat driven interface that will appear in the publisher's web page 512. In this manner, a publisher 594 may define multiple different chat driven interfaces for different purposes or “campaigns”. Additionally, in one embodiment, a publisher 594 may utilize the publisher interface 503 to specify one or more concepts or entities for use with a particular chat driven interface.

Based on the publisher's definition for the chat driven interface a template for each particular definition can be stored as templates 578 associated with the publisher 594, an identifier for the publisher 594, or the identifier for that particular configuration for the chat driven interface. Moreover, a corresponding chat system widget 505 for the publisher's definition may be created. This chat system widget 505 may be configured according to the definition by configuring the chat system widget 505 to make a call (e.g., a request to the/init endpoint of the chat interface 510) for the template 578 associated with that definition. Such a configuration may be, for example, including a tag or other code in the widget 505 that references the associated template 578 (e.g., includes an identifier for the associated template) and will cause a call to be made that includes the reference to the template. In cases where the publisher's definition includes concepts or entities, the associated chat system widget 505 may also be configured according to those concepts or entities by including these concepts or entities in the a tag or other code in the widget 505 that will cause a call to be made. Thus, such a call to the chat interface 510 may also include such concepts or entities. These chat system widgets 505 may then be stored in publisher widget store 582.

At some point then, these chat system widgets 505 may be deployed within an ad distribution network provided by an ad distribution network provider 599 such as DoubleClick by Google or the like. Thus, the chat system widgets 505 may be deployed at the ad distribution network provider 599 and may be served to a user's web browser 506 when a user access a publisher's web page 512. For example, a publisher's web page 512 may include a display container that may reference the ad distribution network provider 599 and a particular campaign or chat system widget 505 (e.g., may include an identifier associated with the campaign or widget 505).

Accordingly, when a user access the web site provided by the publisher web server 504 at their device 502 using the web browser 506 on their device the publisher's web page 512 may be provided by the publisher's web server 504. As the display container of the publisher's page 512 references the ad distribution network provider 599, a request may be sent to the ad distribution network provider 599. The request may include reference the publisher's campaign of chat system widget 505. In response to this call, the ad distribution network provider 599 may provide the referenced chat system widget 505 to the requesting browser 506 where it is loaded in the display container of the publisher's web page 516.

As has been discussed the chat system widget 505 is configured to when the chat system widget 505 is loaded in the display container (e.g., an executed by the browser 506), it may send an initial request to the chat system 500 identifying the URL of the publisher's web page and a template 578 associated with the chat system widget 505. If the chat system widget 505 was configured with concepts or entities these may also be provided in association with the request. Additionally, the request may include one or more tags or other metadata provided by the ad distribution network provider 599 in association with the publisher's web page 512.

To illustrate in more detail, in many cases ad distribution network providers 599 or publishers' 594 may provide metadata in association with the web page 512 or display container (e.g., frame) on the publisher's page 512 in which the content is to be presented. This metadata may, for example, define the web context or other data regarding the web page 512 in which the display container exists. This may allow, for example, tracking or analytics to be performed in association with the publisher's web page 512 or advertisements presented within that display container in association with the publisher's web page 512. Examples of such tags include Urchin Tracking Module (UTM) parameters or the like.

In one embodiment, chat system widget 505 when composing an initial request to the chat system 500, may access such metadata if it is present or available with respect to the publisher's web page and include such metadata as parameters to this initial request. For example, the chat system widget 505 may access any utm_term parameters included in association with the publisher's web page 512 and include these terms as parameters to the request.

The chat system 500 may utilize the identifier of the template 578 to access the template 578 associated with the chat system widget and return the template 578 along with a response frame including content to display in the display portion of the chat driven interface 514 or a chat interaction to present in the chat portion of the interface 514. In particular, the chat system 500 may receive the request and determine any concepts or entities associated with the request. These concepts and entities may be determined from the request and may have originated, for example, from the configuration of the chat system widget 505 or may have been included in the request based on metadata as determined from the publisher's web page 512 or display container included therein.

In one embodiment, concepts or entities for the publisher's web page 512 may be determined in real-time at the point an initial request is received from the chat system widget 505. Specifically, such a request may include the URL of the publisher's web page or web site. When the request is received at the chat interface 510, the URL of the publisher's web page 512 or web site may be provided to site indexer 592. The site indexer 592 may operate in real-time to index a publisher's web site by accessing the URL associated with the publisher's web site and “scraping” or otherwise obtaining the publisher's web site content that is presented on the publisher's web page 512 (e.g., the content accessed at the URL). When the content is obtained for a publisher's web page the site indexer 592 may extract entities (e.g., concepts or entities, etc.) from the content for the publisher's web page 512. These concepts or entities may be returned by site indexer 592 to the chat interface 510 for inclusion in the request to the chat orchestrator 540.

Additionally, in one embodiment, a site index 594 may be created by the site indexer 592 which maps URLs of publisher web pages 512 to associated extracted concepts or entities. Accordingly, when the request is received at the chat interface 510, the URL of the publisher's web page 512 or web site may be provided to site indexer 592. Here, the site indexer 592 may access site index 594 to determine if the web page 512 associated with the URL has already been indexed. If so, the concepts or entities may be determined from the site index 594 based on the URL and returned to the chat interface 510 for inclusion in the request to the chat orchestrator 540. If the web page 512 associated with the URL for the web page 512 has not been indexed, it may be indexed in real-time as discussed.

Alternatively, in one embodiment, the site indexer 592 may return an error or an indication that no concepts or entities have been found to the chat interface 510. The site indexer 592 can then access the web page 512 associated with the URL can then be indexed asynchronously to the received request at a later point and added to the site index 592 such that subsequent requests for that URL can be satisfied utilizing the site index 594.

The request received from the chat widget 505 at the chat interface 510, including any included or determined concepts and entities may be passed to orchestrator 510. The chat orchestrator 540 may process this request substantially as detailed above to select content and form a response with the template 578, the selected content and an interaction to return to the chat system widget 505 through interface 510. These responses may include one or more objects associated with the selected content. As may be noted, this may be content particular to an advertiser as discussed above, may be content associated with a data service of the chat system 500 or may be some combination. The chat system widget 505 may receive this response and process the included objects to render or update the chat driven interface 514 presented in the container on the publisher's web page 512 by presenting the content in the display portion of the interface 414 and the interaction in the chat portion of the interface 514.

In the manner described above, embodiments may utilize the entities (e.g., concepts and destinations) as determined from the publisher's configuration or from metadata associated with the web page by the publisher 594 or ad distribution network provider 599 to initialize a chat driven interface 514 presented in a display container included in that publisher's web page 512, including initialization with contextual content. Moreover, once the chat driven interface 514 presented in the display container on the publisher web page 512 is initialized (e.g., initial content or an initial interaction for the chat portion is presented in the interface 514) the chat system widget 505 may interact with the chat system 500 substantially as described above such that the chat orchestrator 540 may process these subsequent requests to return the selected content and responsive interactions to the user through the chat driven interface 514 presented in the display container.

As will be recalled from the above discussion, embodiments of the chat driven artificial intelligence system may utilize one or more data services to determine the content to provide to a user. Specifically, in certain embodiments, the orchestrator may provide extracted concepts or intents to one or more data services. These data services may provide one or more travel related items (e.g., destinations, regions, hotels, neighborhoods, etc.) in response, along with content related to those travel related items. In embodiments, the data services include a set of services that may take as input a concept and search concept data to rank a set of travel related items and return the content for the top ranked set of travel related items.

As the goal of embodiments of chat driven artificial intelligence systems is to select and provide accurate content reflective of the concepts or destinations expressed by the user it may therefore be desirable in many instances to premise the search for items and related content on a knowledge base that includes concepts (referred to herein as a concept network). This is the case at least because the concepts that may be used to search for items and related content are not necessarily expressly provided by the user. Instead, in many cases the concepts used for this searching may be derived from the natural language statements of the user (e.g., as provided in a chat interface) or other sources.

Accordingly, embodiments of the data services of the chat driven artificial intelligence system may create, maintain or utilize concept networks. These concept networks may include a graph comprised of nodes and edges, where the nodes may include concept nodes and the edges may include relationships between these concepts nodes (e.g., concepts) and other nodes, including other concept nodes or nodes associated with various items. In a travel related context, for example, these nodes may represent items such as hotels, destinations, flights, attractions, activities, etc. The relationships indicated by the edges of the concept network may be assigned weights or scores indicating a degree of affinity between the nodes related by a relationship, including, for example, the degree of affinity between a concept represented by a concept node and an item node to which that concept node is related. Additionally, the relationships may be directional, such that they may be traversed only in a single direction, or have different weightings depending on the direction in which the relationship is traversed or the nodes related.

Embodiments of such a concept network can thus be searched (or navigated) to determine items (and related content) associated with one or more concepts. Moreover, the degree of affinity between the concepts and items may be determined using the weights of the relationships in the concept network. In particular, concept networks including nodes representing travel related items such as hotels or destinations may be used in travel related systems to search for and provide these travel related items (and related content) associated with one or more concepts. In this manner, the travel related content related to the concepts expressed by, or determined from, a user may be utilized to provide insightful items and content to the user. It should be noted here that while concept networks and the creation, updating and use of such concept networks are particularly germane to the context of travel related artificial intelligence systems and that is the context in which embodiments are illustrated, after a review of this disclosure those of ordinary skill will understand that embodiments of concept networks and their use may be applicable to, and utilized in, a wide variety of other context, all of which are fully contemplated herein.

Specifically, a concept network may be thought of as a graph comprising a number of interrelated nodes. These nodes may include nodes that may have labels defining the type of the node (e.g., the type of “thing” or entity that the node represents) and properties that define the attributes or data of that node. In a travel related context then, such a concept network may associate nodes representing travel related items with concepts. Moreover, the travel related items may also be associated with content for those travel related items. The content can be stored as a property of the node representing a travel related item or as part of a distinct node related to the node representing the travel related item. For example, the labels of the nodes of a concept network may include CONCEPT, IMAGE, USER, HOTEL, FLIGHT, DESCRIPTION, EVIDENCE, IMAGE, DESTINATION, ATTRACTION, or the like. Properties of a node may include, NAME:[NAME], SOURCE:[SOURCE], SYNONYMS:[LIST OF SYNONYMS], or the like.

Thus, the concepts represented in a concept network may include almost any concepts desired. These concepts have concept nodes (e.g., a node with the label “CONCEPT”) with one or more properties defining the concept (e.g., names such as “pool”, “spa”, “kid”, “brisket”, “$”, “$$, etc.). In certain embodiments, the names for concepts may be uni-grams, bi-grams or tri-grams (e.g., concepts that may be expressed in one, two or three word or symbol groups).

The nodes of the concept network may be interrelated using relationships that form the edges of the graph. A relationship may connect two nodes in a directional manner. These relationships may also have a label that defines the type of relationship and properties that define the attributes or data of that relationship. These properties may include an identification of the nodes related by the relationship, an identification of the directionality of the relationship or a weight or degree of affinity for the relationship between the two nodes. For example, the labels of the relationships of a concept network may include “isRelatedto” (e.g., for relationships between concept nodes), “hasConcept”, “hasDescription”, “hasEvidence”, “hasAttraction”, or the like.

It may be useful here to an understanding of concept networks to illustrate an example of such a concept network. It will be noted that while concept networks as described herein have been described as graphs, these concept networks may be arranged or stored in any suitable manner (e.g., data structures or the like) that captures such concepts and relationships, including in a graph database such as Neo4j, in a relational database such as Postgres, in another type of database, in a flat file structure or otherwise.

Referring then to FIG. 6A, a graphical depiction of a portion of an example concept network 5000 is depicted. Here, nodes are represented by circles and relationships are represented by the directional arrows between the nodes. Such a concept network 5000 may represent concepts, their association and the degree of affinity between entities represented by the nodes. Thus, for example, the concept node 5100 a has a label “CONCEPT” indicating it is a concept node and a name “Ocean” indicating the concept node represents the concept of an ocean. Similarly, concept node 5100 b has a label “CONCEPT” indicating it is a concept node and a name “Surfing” indicating the concept node represents the concept of surfing. These nodes of the graph are joined by edges formed by directed relationships 5102 a, 5102 b representing that the concept of Ocean (represented by node 5100 a) is related to (represented by the labeled “isRelatedto” relationship 5102 a) the concept of Surfing (represented by node 5100 b), and the concept of Surfing (represented by node 5100 b) is related to (represented by the labeled “isRelatedto” relationship 5102 b) the concept of Ocean (represented by node 5100 a).

Note that each relationship 5102 may have a different weight (even in the case where the relationship 5102 is the same type of relationship between the same nodes). The ability to assign different weights to directional relationships (even the relationships of the same type between the same two nodes) may allow a concept network to reflect, for example, that there is a hierarchy to some concepts. For example, in the instant example, the concept of surfing may be strongly tied to the concept of ocean, but the concept of ocean may be much broader than the concept of surfing. It will also be noted that in certain embodiments, these weights may be negative indicating, for example, a strong degree of dissimilarity.

These concept networks not only represent that concepts are related to one another, but additionally may also represent that entities (including real-world entities such as hotels, destinations, flights, etc.) are associated with certain concepts and the degree of affinity between these concepts and entities. As an example in concept network 5000, the concept node 5100 c has a label “CONCEPT” indicating it is a concept node and a name “Spa” indicating the concept node represents the concept of a spa. Similarly, node 5100 d has a label “HOTEL” indicating it is a hotel node and a name “LagoVista” indicating the hotel node represents the LagoVista hotel. These nodes of the graph are joined by edges formed by directed relationships 5102 c, 5102 d representing that the concept of Spa (represented by node 5100 c) is related to (represented by the labeled “isRelatedto” relationship 5102 c) the LagoVista hotel (represented by node 5100 d), and the LagoVista hotel (represented by node 5100 d) is related to (represented by the labeled “hasConcept” relationship 5102 d) the concept of spa (represented by node 5100 c).

A concept network may also represent relations between entities. In concept network 5000 for example, node 5100 e has a label “Destination” indicating it is a destination node and a name “Austin” indicating the destination node represents the destination Austin. The Austin destination node 5100 e is joined to the LagoVista hotel node 5100 d by edges formed by directed relationships 5102 e, 5102 f representing that the LagoVista hotel (represented by node 5100 d) is related to (represented by the labeled “isLocatedin” relationship 5102 e) the destination of Austin (represented by node 5100 e), and the destination of Austin (represented by node 5100 e) is related to (represented by the labeled “hasHotel” relationship 51020 the LagoVista hotel (represented by node 5100 d).

As can be seen from the example illustrated, a concept network can represent a wide variety of entities and concepts, and the relationships between them, in a graph like manner. The consanguinity (if any) of any two nodes in the concept network can thus be determined according to a path between the two nodes and the degrees of affinity associated with the relationships of that path. It will be noted that these concept networks may be stored in any suitable format and according to any suitable storage, including, for example, a graph store such as Neo4j or OrientDB, a triple store, a relational database such as Postgres, etc. Access and queries to such a concept network may thus be accomplished using an associated access or query language (e.g., such as Cypher in the case where the Neo4j graph store is utilized or Elasticsearch or Postgresql in the case of Postgres, etc.).

One particular embodiment of a concept network may be referred to as a trie. A trie can be thought of as a search tree data structure used to store a dynamic set or associative array of concepts. Specifically, in certain embodiments, the trie may be a concept network including a hierarchically set of concept nodes arrayed as a tree structure. Thus, each node at each level of the tree may be a concept node representing a concept that is a sub-concept of a parent concept node (as represented by the presence of an edge denoting that the node is a sub-node of the parent concept node) and where each node may have one or more sub-nodes each representing a sub-concept of that node. In this manner, a trie can be traversed from any node to any other node. Weights or scores (used interchangeably herein) can be generated between any two concepts in a trie. In one embodiment, such a weight may be based on the number of edges (or distance) between two concepts, the number of levels of the trie that must be traversed, the direction of traversal (e.g., either up the trie or down the trie) to navigate between the two nodes representing those concepts or other traversal or traversal distance based criteria.

FIG. 6C is a graphical depiction of a portion of an example concept network 6000 arranged as a trie. Again, nodes are represented by circles and relationships are represented by the directional arrows between the nodes. Such a concept network 6000 may represent concepts while relationships in trie represent a hierarchy of the concepts in the trie. Thus, for example, the concept node 6100 a has a label “CONCEPT” indicating it is a concept node and a name “Landmarks” indicating the concept node represents the concept of a landmarks. Similarly, concept node 6100 b has a label “CONCEPT” indicating it is a concept node and a name “Historical” indicating the concept node represents the concept of Historical. These nodes of the graph are joined by edge formed by relationship 6102 a, representing that the concept of Historical as (represented by node 6100 b) is a sub-node or sub-concept of the concept of Landmarks (represented by node 6100 a). Concept node 6100 c has a label “CONCEPT” indicating it is a concept node and a name “Science” indicating the concept node represents the concept of Science. Concept node 6100 c is joined by an edge formed by relationship 6102 b, representing that the concept of Science (represented by node 6100 c) is a sub-node or sub-concept of the concept of Landmarks (represented by node 6100 a). In the same manner, it can be seen from the depicted portion of a trie that the concept of Architecture is a sub-node or sub-concept of both Historical and Landmark.

Now with an idea of concept networks in mind, attention is directed to artificial intelligence systems and associated data services that may employ these concept networks in the context of travel. Specifically, in certain embodiments, searching data services utilizing a concept network may be provided whereby one or more concepts may be provided to the searching data service through an interface. These searching data services may construct a search for a particular type of travel or real-estate related item (e.g., a destination or hotel) based on the concepts received and return an ordered list of items (and related content) based on the degree of affinity between the received concepts and the items as represented in the concept network.

Utilizing embodiments of a concept network, such searches may accurately return real-world travel or real-estate related items and related content associated with concepts (such as images or the like) to a user. Moreover, these concept networks may be automatically created or updated without user involvement based on a wide variety of criteria to continually improve the accuracy or performance of the data services performing such searches. Additionally, embodiments may employ certain types of relationships, types of concept networks, storage of the concept network, or divisions of the concept network, to achieve greater speed or reduce the processing or memory required in the storage, searching or other processing accomplished in association with such creating, updating, searching or storing concept networks.

Again, it should be noted here that while embodiments of such searching techniques, methods and systems have been described herein with respect to the context of, and use in, interaction driven artificial intelligence system, embodiments of such search techniques, methods and system, including those used for searching or recommendations of destinations or hotels and associated content such as images may be utilized usefully in a variety of other contexts where the searching or recommendation of destinations, hotels or certain content (e.g., such as images) may be desired and the embodiments and context of the description of various embodiments herein is provided without loss of generality.

FIG. 7 depicts one embodiment of a travel related artificial intelligence system 600 employing concept networks in association with a data service that may be utilized to search using these concept networks. Certain depicted components operate substantially similarly to those discussed above and will not be discussed in association with FIG. 7. In this embodiment, different concept networks for different entities may be created or stored separately in order to, for example, increase the performance of the searching or other interactions with the concept networks. These concept networks may be used in association with other data by the data services 650 to return travel related items and associated content in response to requests received at those data services 650. These data services 650 may, for example, be implemented as microservices or web services that are accessed using an API, such as a RESTful interface or the like.

In particular, a destination concept network 612 may be a concept network that includes nodes representing destinations, other entities related to those destinations or concepts related to those destinations and entities. Such a destination concept network 612 may be stored, for example, in a graph database such as Neo4j, in a relational database such as Postgres, in another type of database, in a flat file structure or otherwise. In certain embodiments, this destination concept network 612 may not include nodes representing certain entities such as hotels or other accommodations (collectively referred to herein as hotels).

While destination concept network 612 may include nodes corresponding to destinations incorporated into the concept network 612, in one embodiment, the destinations 692 may be stored separately from the concept network 612 (e.g., the concept network 612 may not include nodes representing destinations) or a separate listing of destinations 692 may be maintained in addition to the nodes in the concept network 612 representing destinations. Moreover, there may be an association of destinations with their (geographical) locations. This association may comprise, for example, an association between a destination and one or more GeoJSON objects for that destination (or may be a JSON object for the destination including such a GeoJSON) in the destinations 692. The listing of destinations 692 may be maintained in a graph database such as Neo4j, in a relational database such as Postgres, in another type of database, in a flat file structure or otherwise.

Content associated with those destinations may also be stored in association with those destinations. For example, in one embodiment images associated with those destinations may be stored in association with those destinations. One or more concepts may be associated with these images. Such concepts may, for example, correspond to the concepts used by these system where such concepts may be determined by a third party data service or from the context of the source from which the image was obtained. In some embodiments, a score may be associated with each of the concepts associated with the image. These scores may take the form, for example, of an image concept vector including a score associated with the concepts (e.g., the entire set or a subset of) utilized by the system.

In one embodiment, region data 618 may be stored separately and include data on various geographical regions. Specifically, region data 618 may include one or more GeoJSON objects that define or bound an associated region. Thus, region data 618 may be accessed to determine the metes or bounds of a particular region or destination. This region data 618 may be stored in a relational database such as Postgres.

Similarly, hotel concept network 614 may be a concept network that includes nodes representing hotels and other entities related to those hotels and concepts related to those hotels and entities. Such a hotel concept network 614 may be stored maintained in a graph database such as Neo4j, in a relational database such as Postgres, in another type of database, in a flat file structure or otherwise. In certain embodiments, this hotel concept network 614 may not include nodes representing certain entities such as destinations.

Again, while hotel concept network 612 may include nodes corresponding to destinations incorporated into the concept network 612, in one embodiment, the hotel 694 may be stored separately from the hotel concept network 614 (e.g., the hotel concept network 614 may not include nodes representing hotels) or a separate listing of hotels 694 may be maintained in addition to the nodes in the hotel concept network 614 representing hotels. Moreover, there may be an association of hotels with their (geographical) locations. This association may comprise, for example, an association between a destination and one or more GeoJSON objects for that hotel (or may be a JSON object for the hotel including such a GeoJSON) in the hotels 694. The listing of hotels 694 may be maintained in a graph database such as Neo4j, in a relational database such as Postgres, in another type of database, in a flat file structure or otherwise.

In one embodiment, this hotel destination data 616 may be stored separately from the listing of hotels 694. In such an embodiment, hotel destination data 616 may be an association of hotels with their locations. This association may comprise, for example, an association between a hotel and one or more GeoJSON objects for that hotel (or may be a JSON object for the hotel including such a GeoJSON). Hotel destination data 616 may, for example, be stored maintained in a graph database such as Neo4j, in a relational database such as Postgres, in another type of database, in a flat file structure or otherwise.

As with destinations, content associated with those hotels may also be stored in association with those hotels. For example, in one embodiment images associated with those hotels may be stored in association with those hotels. One or more concepts may be associated with these images. Such concepts may, for example, correspond to the concepts used by these system where such concepts may be determined by a third party data service or from the context of the source from which the image was obtained. In some embodiments, a score for that image may be associated with each of the concepts associated with the image. These scores may take the form, for example, of an image concept vector including a score associated with the concepts (e.g., the entire set or a subset of) utilized by the system.

It will be understood that while certain and various data and structures described have been depicted separately or as being stored together, other embodiments may combine or separate such data or structures according to the context or implementation of such embodiments. For example, in one embodiment, there may a single concept network that includes all concepts utilized by the chat system 600 and separate destination listings and hotel listings may be maintained (or may be combined into a single listing). In this manner, there may be a set of canonical or complete set of concepts that may be utilized by the chat system 600 for both destinations and hotels.

As discussed above, a data service 650 in the context of a chat driven artificial intelligence system may receive a request comprising one or more concepts and return one or more entities or content for one or more entities related to the concepts. One data service 650 may be a hotel data service 620. This hotel data service 620 includes an interface 622 for receiving and responding to requests and a search module 624. The hotel data service 620 receives requests through the interface 622 and utilizes the search module 624 in association with hotel concept network 612 to determine hotels responsive to the concepts of the received request and return content associated with those hotels through the interface 622. The request may include one or more concepts and optionally one or more regions. The response to this request may include one or more ordered JSON objects, the JSON objects including content for a set of ordered or ranked hotels.

In one embodiment, if a region is included in the request to the hotel data service 620 the search module 624 may first access the region data 618 to determine the metes and bounds of the regions. The search module 624 may query the region data 618 with the region specified in the request and obtain the GeoJSON associated with the region. Using the specifications for the region (e.g., the boundaries as specified in the GeoJSON for the region) the search module 624 may then query the hotel destination data 616 to determine all the hotels located within that region.

Once the set of hotels within the region are determined, each of those hotels can be scored and ranked based on the hotel concept network 614. The determination of a score between the concepts of the request and a hotel can be based on both the number of “hops” or nodes along the path traversed between the node representing the concept and the node representing the hotel, along with the degree of affinity (weight) of each relationship in the path.

Specifically, to score a hotel each of the concepts of the request is evaluated to determine the shortest path from the node representing the hotel to the node representing that concept. Each of the paths that is shortest (e.g., the fewest number of “hops” or relationships between the two nodes) may be scored by multiplying the weights of each relationship in that path. The shortest path with the highest score may be selected as the score for that concept with respect to that hotel. In one embodiment, there may be a maximum “depth” or number of hops that a path may have (e.g., 2, 3 or 4 hops), such that if a path includes more than this maximum number of hops it will not be considered as a possible shortest path or will otherwise not be utilized. If there is no shortest path between the concept (node) and the hotel (node), either because there is no path at all or because there is no path with less than a maximum depth, the score for that concept and that hotel may be assigned a zero value. Once a score for each concept is determined for the hotel, the total score for that hotel may be determined based each of the individual scores for each of the concepts of the request. This hotel score may be determined for example by summing the scores for each of the individual concepts, multiplying the scores (e.g., excluding any zero scores), averaging the scores for the concepts or otherwise. In this manner, scores for each of the hotels in the region may be determined using the hotel concept network 614 and the concepts, relationships and hotels represented therein.

A number of hotels with the highest score (e.g., the top 5, top 10, etc.) may then be selected and the content for these hotels determined. As discussed, this content for a hotel may be included in the node of the hotel concept network 614 representing that hotel or may be included in other nodes related to the node for the hotel. The content for the hotel may be included in an object for that hotel (e.g., a JSON object or the like) and the objects for each of the top ranked hotels may be returned by the hotel data service 620 in response to the initially received request. In one embodiment, images associated with a determined hotel that are likewise associated with the concepts of the received request may be determined and these images returned as at least a portion of the content associated with those hotels.

In one embodiment, the determination of the images to include in the content for a selected hotel may be based on one or more scores for concepts (e.g., the concepts received by the hotel data service 620) that are associated with the set of images for the determined hotel. For example, the set of images associated with the hotel may be accessed, and scores associated with the one or more concepts received in the request to the hotel data service 620 may be determined for each of the set of images based on the scores for those concepts associated with each particular image of the set. The scores for these concepts may be included, for example, in an image concept vector for each image. One or more images can then be selected from the set of images for inclusion in the content for the hotel based on the score determined for the images utilizing the scores for the received concepts associated with each image.

Another data service that may be utilized by embodiments of a travel related artificial intelligence system may be a destination data service 640. This destination data service 640 includes an interface 642 for receiving and responding to requests and a search module 644. The destination data service 640 receives requests through the interface 642 and utilizes the search module 644 in association with destination concept network 612 to determine destinations responsive to the concepts of the received request and return content associated with those destinations through the interface 642. The determination of a degree of affinity between the concepts of the request and a destination can be based on both the number of “hops” or intervening nodes along the path traversed between the node representing the concept and the node representing the destination, along with the weights of each relationship in the path. The destination data service 640 may also the search module 644 in association with destination concept network 612 to determine images associated with determined destinations that are likewise associated with the concepts of the received request and return these images as at least a portion of the content associated with those destinations through the interface 642.

Specifically, each of the destinations of the destination concept network 612 may be scored. To score a destination each of the concepts of the request is evaluated to determine the shortest path from the node representing the destination to the node representing that concept. Each of the paths that is shortest (e.g., the fewest number of “hops” or relationships between the two nodes) may be scored by multiplying the weights of each relationship in that path. The shortest path with the highest score may be selected as the score for that concept with respect to that destination. In one embodiment, there may be a maximum “depth” or number of hops that a path may have (e.g., 2, 3 or 4 hops), such that if a path includes more than this maximum number of hops it will not be considered as a possible shortest path or will otherwise not be utilized. If there is no shortest path between the concept (node) and the destination (node), either because there is no path at all or because there is no path with less than a maximum depth, the score for that concept and that destination may be assigned a zero value. Once a score for each concept is determined for the destination, the total score for that destination may be determined based each of the individual scores for each of the concepts. This destination score may be determined for example by summing the scores for each of the individual concepts, multiplying the scores (e.g., excluding any zero scores), averaging the scores for the concepts or otherwise. In this manner, scores for each of the destinations may be determined using the destination concept network 612 and the concepts, relationships and destinations represented therein.

A number of destinations with the highest score (e.g., the top 5, top 10, etc.) may then be selected and the content for these destinations determined. As discussed, this content for a destination may be included in the node of the destination concept network 612 representing that destination or may be included in other nodes related to the node for the destination. The content for the destination may be included in an object for that destination (e.g., a JSON object or the like) and the objects for each of the top ranked destination may be returned by the destination data service 640 in response to the initially received request. In one embodiment, images associated with a determined destinations that are likewise associated with the concepts of the received request may be determined and these images returned as at least a portion of the content associated with those destinations.

In one embodiment, the determination of the images to include in the content for a selected destination may be based on one or more scores for concepts (e.g., the concepts received by the destination data service 640) that are associated with the set of images for the determined destination. For example, the set of images associated with the destination may be accessed, and scores associated with the one or more concepts received in the request to the destination data service 640 may be determined for each of the set of images based on the scores for those concepts associated with each particular image of the set. The scores for these concepts may be included, for example, in an image concept vector for each image. One or more images can then be selected from the set of images for inclusion in the content for the destination based on the score determined for the images utilizing the scores for the received concepts associated with each image.

As may be imagined, the complexity of various concept networks as discussed herein may be immense, with tens or hundreds of thousands (or more) of different nodes in each. The traversal of these concept networks to determine the shortest path(s) when determining a set of top ranked hotels or destinations may therefore be computationally expensive (e.g., from a processor or memory perspective) and relatively time consuming. It may thus be desired to configure the various concept networks such that the navigation of these concept networks may be improved, reducing the use of computational resources need to accomplish such navigation and speeding the navigation of these concept networks (and thus commensurately speeding the search and reducing response times for systems and processes that must navigate these concept networks).

Accordingly, in one embodiment, concept networks 612, 614 may include “metaRelated” relationships between two or more nodes. A metaRelated relationship indicates that there is a path comprising multiple relationships (e.g., longer than a single hop) between the two nodes related by the metaRelated relationship. Moreover, the metaRelationship may have an associated weight reflective of the weights of the relationships in the path between the two nodes represented by the metaRelated relationship.

It may be useful to briefly illustrate the use of metaRelated relationships with the reference to the previously provided example of a concept network. Referring then to FIG. 6B, the example concept network 5000 is depicted along with metaRelationships that have been added. As discussed, concept node 5100 b has a label “CONCEPT” indicating it is a concept node and a name “Surfing” indicating the concept node represents the concept of surfing, concept node 5100 a has a label “CONCEPT” indicating it is a concept node and a name “Ocean” indicating the concept node represents the concept of an ocean and concept node 5100 f has a label “CONCEPT” indicating it is a concept node and a name “Water” indicating the concept node represents the concept of water.

These nodes of the graph are joined by edges formed by directed relationships 5102 b, 5102 i representing that the concept of Surfing (represented by node 5100 b) is related to (represented by the labeled “isRelatedto” relationship 5102 b) the concept of Ocean (represented by node 5100 a) with a weight of 0.9, and the concept of Ocean (represented by node 5100 a) is related to (represented by the labeled “isRelatedto” relationship 5102 i) the concept of Water (represented by node 5100 f) with a weight of 0.8. The metaRelated relationship 5102 g represents this shortest path from the Surfing concept node 5100 b to the Water concept node 5100 f along the path defined by relationship 5102 b, Ocean node 5100 a and relationship 5102 i. Additionally, metaRelated relationship 5102 g may be assigned a weight of 0.72 reflecting the weights of the relationships 5102 b, 5102 i in that shortest path (e.g., the product of the 0.9 weight of relationship 5102 b and the 0.8 weight of relationship 5102 i).

Similarly, the metaRelated relationship 5102 h represents the shortest path from the Surfing concept node 5100 b to the Pool concept node 5100 g along the path defined by relationship 5102 b, Ocean node 5100 a, relationship 5102 i, Water node 5100 f and relationship 5102 j. Additionally, metaRelated relationship 5102 h may be assigned a weight of 0.575 reflecting the weights of the relationships 5102 b, 5102 i and 5102 j in that shortest path between the Surfing node 5100 b and the Pool node 5100 g (e.g., the product of the 0.9 weight of relationship 5102 b, the 0.8 weight of relationship 5102 i and the 0.8 weight of relationship 5102 j).

Thus, as will be recalled from above, to score a travel related item (e.g., destination or hotel) with respect to a concept the search modules 624, 644 may determine the shortest path from the node representing the item (e.g., destination or hotel) to the node representing that concept and a score associated with that shortest path. In some embodiments then, to determine such a shortest path and related weight it can be determined if there is a metaRelated relationship between the concept node and the node representing the travel related item, and the score associated with such a metaRelated relationship. In some embodiments as there may be a maximum “depth” or number of hops that a shortest path may have (e.g., 2, 3 or 4 hops) a metaRelated relationship between two nodes will only be established between two nodes if the shortest path between the two nodes contains an equal or lesser number of hops than this maximum depth.

In this manner, the determination of every path between the concept node and the node for the travel related item to determine the shortest path between them may be avoided when a request is received at a data service, along with the avoidance of the calculation of the degree of affinity of the shortest path. Consequently, the number of processor cycles and amount of memory utilized to make such determinations may be severely reduced. Moreover, the speed with which the determination of travel related items and associated content responsive to a request received at a data service are made may be markedly increased.

As the concept networks 612, 614 may be updated or otherwise change at a fairly rapid pace, in one embodiment, metaRelated service 670 may operate to update the concept networks 612, 614 with these metaRelated relationships. The metaRelated service 670 may operate asynchronously at some time interval (e.g., daily, weekly, etc.) to determine the shortest path with the highest score between each concept (or other type of) node and each other node (if a path exists). The metaRelated service 670 may then determine if the shortest path is less or equal to a maximum number of hops. If the shortest path contains a number of hops less than or equal to a maximum depth the metaRelated service may update the concept network 612, 614 with a metaRelationship between the nodes and assign the highest score to this metaRelationship. This update may include creating a new metaRelationship, updating a previously established metaRelationship between the nodes or removing a previously established metaRelationship between the nodes.

As has been discussed, it is desired to provide accurate and responsive travel related items to a user of embodiments of a chat artificial intelligence systems disclosed herein. Accordingly the accuracy of the concept networks used in such artificial intelligence systems is important, as the accuracy of the travel related items and associated content returned to the user is heavily premised on such concept networks. It is therefore desirable to continually refine the nodes and relationships (and weights) of the concept networks utilized based on available data. As there may be many users interacting with the travel related artificial intelligence systems and the searches, activities and interaction with the travel related chat artificial intelligence systems and its interfaces may be tracked it may be desirable to utilize such data in the refinement of the concepts network used by such artificial intelligence systems.

In one embodiment, then, the destination concept network 612 or hotel concept network 614 may be automatically updated by concept network updater 660. The concept network updater 660 may apply a set of rules, including a machine learning algorithm or the like. These rules can take into account queries for particular concepts received through the search interfaces 624, 644 of the data services 650, the number of times particular paths through the concept network are traversed when searching the concept networks 612, 614, or user interactions with content that is presented to the user (e.g., as ascertained from web tracking data associated with interfaces presented from the artificial intelligence system to the user). These rules can serve to add new concept nodes to the concept networks 612, 614, establish new edges (relationships) or weights between concept nodes and other nodes, or adjust the weights on existing relationships.

Examples of such rules may be:

-   -   If a user likes “ThumbsUp” content related to a search result         apply a boost (e.g., increase the weight of a relationship)         between all concepts associated with a user interaction on and         the travel item (e.g., hotel, destination, etc.) in the result         that they liked.     -   If a user dislikes “ThumbsDown” content related to a search         result apply a decrement (e.g., decrease the weight of a         relationship) between all concepts associated with a user         interaction on and the travel item (e.g., hotel, destination,         etc.) in the result that they disliked.     -   If a user clicks a search result, apply a boost (e.g., increase         the weight of a relationship) between all concepts associated         with a user interaction searched on and the travel item (e.g.,         hotel, destination, etc.) in the result     -   If a user never clicks on a search result in the result set,         then apply a decrement (e.g., decrease the weight of a         relationship) between all concepts associated with a user         interaction and the search results.

As mentioned above, embodiments may utilize or create an API microservice capable of receiving concepts and returning destinations or receiving a destination and responding with concepts. Generally, a system extracts concepts from a chat system and uses AI systems (such as those described above) to recommend one or more destinations based on the extracted information. For example, assume that an extraction service extracts several concepts from the chat system. The systems use the extracted concepts to determine relevant destinations and points of interest based on the extracted concepts. Other factors besides the concepts can also be used, such as geo shapes, weather information, dates, etc. For example, with respect to the concept “skiing”, the system may also use weather and travel date information to automatically recommend destinations. For example, if a user wants to go skiing during month A, it would not be desirable to recommend a destination that is too warm for skiing during month A, even though that destination may score high during other months. In another example, if the concept “honeymoon” is extracted, destination recommendations may include destinations that score high in related concepts such as “romantic getaway”, “anniversary”, etc., or other concepts mapped to the concept of “honeymoon”. The destinations that are recommended by the system can be ranked based on a scoring system, as described herein.

With respect to scoring potential destinations, in some embodiments, the scoring process can be thought of as a matrix of trie concepts versus regions. For the purposes of this description, a trie can be thought of as a search tree data structure used to store a dynamic set or associative array of concepts, as described above. Following is Table 1, which illustrates a partial view of a simplified matrix. In this example, each row of the matrix represents a region—in this example, the cities City1, City2, and City3. In this example, each column of the matrix represents a trie concept—in this example, hiking, beach, and bars. For the purposes of this discussion, hypothetical scores are entered for each concept and city. Note that the scores can be determined by any desired method. For example, scores from third parties (e.g., Triposo—www.triposo.com) can be used and normalized.

In the example of Table 1, assume that a chat system extracts the concepts “Hiking” (column 1) and “Beach” (column 2) from interactions with a user. In this example, City3 would score the highest, since City 3 has high scores for both concepts. City2 or City1 would score second, depending on the scoring logic used. In one example, the average concept scores are used. In this example, City2 would rank second to City3 based on the average concept scores. As discussed above, the scores can be calculated in any desired way. Also note that this is a very simple example. In other examples, multiple matrices may be used and more complicated scoring logic may be used. Note that different concepts can also be weighted to get desired results. For example, perhaps “Hiking” is considered more important than “Beach”. In that example, “Hiking” can be weighted more than “Beach” to get the desired results (i.e., a weighted sum). Therefore, a score for an unimportant concept will not greatly affect the overall score for a destination.

TABLE 1 Hiking Beach Bars City1 0.7 0.1 0.9 City2 0.3 0.7 0.9 City3 0.9 0.9 0.5

In one embodiment, to facilitate the recommendation or search for destinations or hotel, certain information may be determined (e.g., initially or at certain intervals) such that it may be available for use in the determination of an overall score for a destination or hotel. For example, in one embodiment concept net updater 660 may, in one embodiment, determine concept net relationship matrix 696. This concept net relationship matrix may be a matrix M×M matrix where M is equal to the number of concepts being utilized by the chat system 600. To illustrate, as discussed above, in one embodiment, there may a single concept network that includes all concepts utilized by the chat system 600 and separate destination listings and hotel listings may be maintained (or may be combined into a single listing). In this manner, there may be a set of canonical or complete set of concepts that may be utilized by the chat system 600 for both destinations and hotels. Concept net updater 660 may utilize such a single concept network to determine a score for the relationship between each concept and every other concept of the (e.g., complete) set of concepts.

Such a score may, for example be based on a score (e.g., a metaRelated score) between the nodes representing the two concepts in the concept network. The score may also be based on a navigational heuristic. As but one example, scores can be generated between any two concepts in a trie based on the number of edges (or distance) between two concepts, the number of levels of the trie that must be traversed, the direction of traversal (e.g., either up the trie or down the trie) to navigate between the two nodes representing those concepts or other traversal or traversal distance based criteria. In embodiments of such a matrix, the score between the same concept may be represented by an identity value, such as “1” or any other suitable value. Accordingly, the concept net relationship matrix 696 may resemble the following matrix:

Concept1 Concept2 ConceptN (C1) (C2) . . . (CN) Concept1 (C1) Identity Score C1toC2 Score . . . C1toCN Score Concept2 (C2) C2toC1 Score Identity Score . . . C2toCNScore . . . . . . . . . . . . . . . ConceptN (CN) CNtoC1 Score CNtoC2 Score . . . Identity Score

Additionally, a score for each, or a subset of, the concepts, (e.g., the set of canonical or complete set of concepts that may be utilized by the chat system 600) may be determined for each of the destinations stored in the list of destinations 692 or hotels in the listing of hotels 694. In one embodiment, the score for a destination or hotel and the set of concepts for that destination or hotel (which may be the same as, or fewer concepts than the complete set of concepts) may be determined by the respective service (e.g., destination data service 640 or hotel data service 620).

To determine such a score for the set of concepts for a destination or hotel, a set of content (documents) may be obtained for the destination or hotel. Each of these documents may be obtained from a particular source (e.g., Trip Advisor, Trivago, Wikipedia, etc.) or may be obtained through a search based on the destination or hotel performed through an Internet based search engine such as Google or Bing, or in another manner.

For each document, the plain text or other data of the document may be extracted from the main content/body of the document. From this plain text or other data, the set of concepts that are present in the document may be extracted. This extraction may extract and determine a score for each of the canonical set of concepts utilized by the chat system 600 that is present in that document. Scores for those canonical concepts that are not present in the document (e.g., cannot be extracted from the document) may not be given for that document or may be given a default score such as zero. This extraction and concept score for those concepts present in the document may, for example, be determined using term frequency—inverse document frequency (TFIDF) or the like. In one embodiment, the document (or an identifier for the document) may be stored by the chat system 600 along with the concept vector for that document (e.g., a vector of concept scores for each (or a subset) of the canonical set of concepts determined from that document, referred to as a document concept vector).

Accordingly, there may be a set of documents associated with a destination or hotel, where each document has an associated concept vector denoting a score for each (or a subset of) the canonical set of concepts utilized by the chat system 600. The scores for the concepts for each of the set of documents can then be combined to create a concept vector for the set of documents (referred to as an overall document concept vector). In other words, in one embodiment, the document concept vectors for each of the set of document for a destination can be combined to generate a score for each (or a subset of) the canonical set of concepts utilized by the chat system 600. The score for a concept in the overall document vector may be determined for example by determining the score for that concept in each document vector where it is present and applying a heuristic or weight to the scores as determined from each document concept vector. This weight may, for example, be a dual weighted average of the source of the respective document based on a trust level for that source. For any concepts in the canonical set of concepts for which no score was present in an of the document concept vectors for documents determined for that destination or hotel a default value (e.g., zero or a relatively low value) may be utilized.

Once the overall document concept vector is determined, a destination (or hotel) concept vector may be created, where the destination concept vector may include a score for that destination for each (or a subset of) the canonical set of concepts used by the chat system 600. In one embodiment, a destination (or hotel) concept vector for a destination (or hotel) can be determined by performing a matrix multiplication operation between the concept net relationship matrix 696 created for the canonical set of concepts of the chat system 600 and the overall document concept vector determined for the destination (or hotel). Such a matrix multiplication produces a destination (or hotel) concept vector having a score for each (or a subset of) the canonical set of concepts that is reflective of both the concepts and scores extracted from the documents obtained for the destination (or hotel) and the relationships that each of the canonical set of concepts of the chat system 600 have to one another.

The destination (or hotel) concept vector determined for a destination (or hotel) can be stored in association with that destination (or hotel) in the list of destination 692 (or list of hotels 694). In one embodiment, for example, the destination (or hotel) concept vector may be stored as key (concept) value (score) pairs. This destination (or hotel) concept vector can then be used by the search module 644 (or search module 624) when performing a search for a destination (or hotel) related to one or more concepts. More specifically, when a request (search) for a set of destinations (or hotels) associated with one or more concepts is received by a search module 624, 644 a search of destinations or hotels can be based on the score for the received one or more concepts in the destination (or hotel) concept vectors for the list of destinations (or hotels).

For example, a search could be conducted for a set of destinations in the list of destinations 692 based on maximizing the combined scores for each of the set of received concepts as determined from the destination concept vectors associated with each of the set of destinations. In particular, for each destination in the list of destinations 692 the associated destination concept vector may be obtained and the score for each of the received concepts for the search determined for that destination from that destination's destination concept vector. These scores (e.g., the scores for each concept of the received concept as stored in the destination concept vector for that destination) can be combined (e.g., added, averaged, the maximum score selected or otherwise) to determine a score for that destination for the search. A number of destinations with the highest score for that search can then be returned.

Following are more detailed examples of some embodiments of methods that may be employed by AI system capable of returning recommendations of destinations (or hotels) based on concepts extracted from embodiments of the chat system described above or from another source. The selection of images corresponding to these destinations (or hotels) is also described. While embodiments may be described with respect to destinations, it will be understood that such embodiments may also apply to hotels or other real-estate or location related contexts such as apartments, houses, points of interest, tours or the like.

Looking then at FIG. 8, a flow diagram for one method of searching for destinations is depicted. Initially, a concept net relationship matrix may be determined (STEP 750). This concept net relationship may be determined (e.g., initially or at certain intervals) such that it may be available for use in the determination of an overall score for a destination or hotel. This concept net relationship matrix may be a matrix M×M matrix where M is equal to the number of concepts being utilized by a system. To illustrate, as discussed above, in one embodiment, there may a single concept network that includes all concepts utilized and separate destination listings may be maintained. In this manner, there may be a set of canonical or complete set of concepts that may be utilized for destinations. This concept network may be utilized to determine a score for the relationship between each concept and every other concept of the set of concepts.

Such a score may, for example be based on a score (e.g., a metaRelated score) between the nodes representing the two concepts in the concept network. The score may also be based on a navigational heuristic. As but one example, scores can be generated between any two concepts in a trie based on the number of edges (or distance) between two concepts, the number of levels of the trie that must be traversed, the direction of traversal (e.g., either up the trie or down the trie) to navigate between the two nodes representing those concepts or other traversal or traversal distance based criteria. In embodiments of such a concept net relationship matrix, the score between the same concept may be represented by an identity value, such as “1” or any other suitable value.

Additionally, a score for each, or a subset of, the concepts, (e.g., the set of canonical or complete set of concepts) may be determined for each of the destinations stored in the list of destinations (LOOP 752). Thus, for a destination a set of content (documents) may be determined for that destination (STEP 754). Each of these documents may be obtained from a particular source (e.g., Trip Advisor, Trivago, Wikipedia, etc.) or may be obtained through a search based on the destination or hotel performed through an Internet based search engine such as Google or Bing, or in another manner.

For each document, a document concept vector can be determined (STEP 756). In one embodiment, for the document, the plain text or other data of the document may be extracted from the main content/body of the document. From this plain text or other data, the set of concepts that are present in the document may be extracted. This extraction may extract and determine a score for each of the canonical set of concepts utilized by the system that is present in that document. Scores for those canonical concepts that are not present in the document (e.g., cannot be extracted from the document) may not be given for that document or may be given a default score such as zero. This extraction and concept score for those concepts present in the document may, for example, be determined using term frequency—inverse document frequency (TFIDF) or the like. The scores for each of the concepts for that document may be stored or other used as the document concept vector for that document.

Once it is determined that the document concept vectors have been determined for each of the documents for the destination (Y Branch of STEP 758) an overall document concept vector may be determined for the destination (STEP 760). Specifically, there may be a set of documents associated with the destination, where each document has an associated concept vector denoting a score for each (or a subset of) the canonical set of concepts utilized by the system. The scores for the concepts for each of the set of documents can be combined to create the overall document concept vector). In one embodiment, the document concept vectors for each of the documents for a destination can be combined to generate a score for each (or a subset of) the canonical set of concepts. The score for a concept in the overall document vector for a destination may be determined, for example, by determining the score for that concept in each document vector where it is present and applying a heuristic or weight to the scores as determined from each document concept vector. This weight may, for example, be a dual weighted average of the source of the respective document based on a trust level for that source. For any concepts in the canonical set of concepts for which no score was present in an of the document concept vectors for documents determined for that destination or hotel a default value (e.g., zero or a relatively low value) may be utilized.

Once the overall document concept vector is determined, a destination concept vector may be created, where the destination concept vector may include a score for that destination for each (or a subset of) the canonical set of concepts (STEP 762). In one embodiment, a destination concept vector for a destination can be determined by performing a matrix multiplication operation between the concept net relationship matrix created for the canonical set of concepts and the overall document concept vector determined for the destination. Such a matrix multiplication produces a destination concept vector having a score for each (or a subset of) the canonical set of concepts that is reflective of both the concepts and scores extracted from the documents obtained for the destination and the relationships that each of the canonical set of concepts of the system have to one another.

The destination concept vector determined for a destination can be stored in association with that destination. In one embodiment, for example, the destination concept vector may be stored as key (concept) value (score) pairs. This destination concept vector can then be used when performing a search for a destination (or hotel) related to one or more concepts. More specifically, when a request (search) for a set of destinations associated with one or more concepts is received (STEP 764), the set of concepts for the search may be determined from the request (STEP 766). A search of destinations can be based on the score for the received one or more concepts in the destination concept vectors for the destinations.

Specifically, in one embodiment, each destination may be scored based on the set of concepts for the search and the destination concept vector for that destination (STEP 768). For example, a search could be conducted for a set of destinations in the list of destinations based on maximizing the combined scores for each of the set of received concepts as determined from the destination concept vectors associated with each of the set of destinations. In particular, for each destination in the list of destinations the associated destination concept vector may be obtained and the score for each of the received concepts for the search determined for that destination from that destination's destination concept vector. These scores (e.g., the scores for each concept of the received concept as stored in the destination concept vector for that destination) can be combined (e.g., added, averaged, the maximum score selected or otherwise) to determine a score for that destination for the search. A number of destinations with the highest score for that search can then be returned (STEP 770).

FIG. 9 is a flow diagram illustrating another embodiment of a method for recommending destinations. A search query is created for each concept (STEP 710). For example, the search query may be “top world destinations for {concept}”, for each respective trie concept. In one example, this can be accomplished using the Bing Web Search API to get the top 50 search results, in the form of 50 URLs (STEP 712). Details of the Bing Web Search API can be found at [https://azure.microsoft.com/en-us/services/cognitive-services/bing-web-search-api/], which is incorporated by reference herein. The Bing Web Search API enables the retrieval of web documents indexed by Bing with results narrowed down by result type, freshness, and more. The search results are filtered (e.g., using whitelisted URLs/concepts) to validate the results (STEP 714). Various validation/filtering techniques may be used. For example, some URLs may be considered valid and whitelisted (e.g., www.travel.com). In another example, if the text of a respective concept is present in the URL, that may be an indication that this result is valid. For example, with respect to the concept “skiing”, if a URL has the work “ski” or “skiing” in it, that may be an indication that the source is valid.

For each filtered website, plain text of the website is extracted from the main content/body of the website using a web scraper (STEP 716). Any desired web scraping tool(s) may be used. Exemplary web scraping tools include BeautifulSoup, Readability, etc. At this point, the plain text for each of the filtered web sites is available to the system. From this plain text, all “location” entities are extracted from the page text of each respective web page (STEP 718). In one example, this is done using the Google Cloud Natural Language API, which can return a list of unique location identifiers for any geographic entity referenced in the text, such as cities, states, countries, etc. In some embodiments, for each website, the system collects all of the entities found, and keeps track of the frequency count, to help determine a score for the respective entity (STEP 720).

From all of this data, frequencies can be normalized and utilized to initialize a matrix (STEP 722). In some embodiments, this matrix may include one row for each region and one column for each concept, similar to Table 1 above. Note that in some embodiments, various matrices can be derived from data sources, such as the Internet (i.e., a scraper matrix), third party data providers such as Triposo (i.e., a Triposo matrix) or Wikivoyage (i.e., a Wikivoyage matrix), etc. Such matrices may each be, like those described above, a concept by region matrix using a related methodology based on frequency counts. In some embodiments, the scraper matrix is merged with the Triposo matrix (STEP 724) (or any other matrices, such as the Wikivoyage matrix, etc.). Note that the matrices are not merged at query time, but beforehand, offline. The end result is a unified matrix with scores for each concept/destination based on all of the various matrices. Note also that different matrices for different contexts may have different weights, based on specifics of a particular context.

At this point, the system has a unified matrix, and the system needs to be able to search concepts. Next, tables are created in a database (e.g., DynamoDB). For example, refer to the database tables shown in FIGS. 11-12. A separate process moves the data from the database (e.g., DynamoDB) tables into Elasticsearch. The data is then merged with data from other sources stored in a number of different databases (e.g., weather data from a Postgres database) (STEP 726). (See, e.g., FIGS. 10-12, described below, for exemplary DynamoDB and Elasticsearch screenshots). Next, this other data and the data from the unified table are put together in Elasticsearch to create a searchable database that can be indexed by concept, region, name, etc. Finally, as shown in FIG. 9, the Destination AI API is uses Elasticsearch query logic to dynamically deliver results (STEP 728).

Note that in Elasticsearch, searches can be filtered based on weather, geometry, coordinates, etc. For example, if a user only wants to go to the United States, the system can filter out results outside of the United States. Similarly, if a user wants to go somewhere warm in January, regions that are not warm in January can be filtered out. Results can also be filtered using client filters. For example, if the web publisher (client) is an airline, destinations that are not in regions where they fly can be filtered out.

Following is a brief overview of how the Destination AI querying logic works in some embodiments. In one embodiment, a search may be based on the unified concept score matrix described above. As described above, in some examples, the scores in the unified matrix are derived from Triposo scores (or other third party sources) and the web scraper. In some examples, for a single incoming concept, the system simply finds the city that has the highest score for the input concept. For multiple concepts, an example input query could look like the following URL (specifying concepts “hiking” and “wine”):

-   https://dest-api.test.wayblazer.systems/destinations?x-api-key=e8824b30-1a48-11e7-bf11-81cbd96aa5d3&concept=Hiking&concept=Wine

In some embodiments, at search time, the system finds the destination that has the highest weighted sum of all concept scores and their corresponding concept weights. Following is the relevant part of an exemplary search query for the example above:

“sort”: { “_script”: { “order”: “desc”, “script”: { “inline”: “(doc[‘concepts.Hiking’].value + doc[‘concepts.Wine’].value) / 2”, “lang”: “painless” }, “type”: “number” } }

This exemplary approach is simple and works fairly well, but there are scenarios where more sophisticated logic may be desired. For example, if one destination has a really high score for hiking but not for wine, it might still outrank a different destination with medium scores for both.

For example, look at two hypothetical destinations (destination_1 and destination_2) and their respective scores:

-   -   destination_1: Hiking is 10, Wine is 0, average is 5     -   destination_2: Hiking is 4, Wine is 4, average is 4

In this case, looking only at the average scores of the two concepts, the system would recommend destination_1 over destination_2, even though destination_2 might actually be the better result. Therefore, the system can be configured to recommend destinations using more sophisticated logic, as desired.

FIGS. 10A-12B are search query and database screenshots for exemplary embodiments of the Destination AI API discussed above. FIGS. 10A, 10B and 10C are an exemplary screenshot of an Elasticsearch query for the region of Cape Town. As shown, various parameters are listed, including concepts and their associated scores. FIGS. 11A and 11B are an exemplary screenshot showing an overview of a DynamoDB database table. As shown, the database includes various columns, including wiki_id, concepts, country_name, country_wiki_id, etc. FIGS. 12a and 12B are an exemplary screenshot showing details of the DynamoDB database, showing various columns in the database and a column show/hide dialog box.

As mentioned above, once one or more destinations or hotels are determined, one or more images corresponding to each destination (or hotel) may be selected for display to users (for example in the card display areas 130, 132 shown in FIGS. 1A-1D). The images selected for a given destination (or hotel) can be selected in any desired manner. In one embodiment, the images selected may be based on concepts (e.g., as received in a request to a data service). However, even when no concepts are utilized, desired images may be selected for display. When selecting images, various considerations may be taken into account. For example, it may be desirable to select a variety of images, so that a group of very similar images are not selected. While images can be selected using any many types of concepts, it may be desired to also include “important” concepts, such as architecture, museums, etc., so that selected images that relate to desired concepts also relate major concepts that would be generally associated with the destination. It may also be desirable to be able to select images even when an acquired image is not tagged with a specific concept, so long as the image can be mapped or associated with a related concept (described below). It may also be desirable to include within a group of selected images, images depicting certain “default” or “gold standard” items relating to particular concepts for a particular destination. As would be evident to one skilled in the art, the selection of images corresponding to a destination can take into account numerous considerations, as desired.

FIG. 13 is a flow diagram depicting one embodiment of a method 1300 for selecting and ranking images. FIG. 14 is a flow diagram depicting one embodiment of a method 1400 for ranking images where no concepts are identified (e.g., by the chat system). Numerous other examples are also possible, as one skilled in the art would understand. First, one or more destinations are determined, for example, based on information extracted from a chat system (described in detail above) (STEP 1310). For each destination, one or more images are acquired (STEP 1320). Images can be acquired in any desired manner. For example, images can be acquired from an existing database, obtained from third parties, etc. In one example, 10 images are acquired from each of three third party sources, such as pixabay (https://pixabay.com/), Flickr (https://www.flickr.com/), and Triposo (https://www.triposo.com/). These particular examples provide an application programming interface (API) to enable automated access to their stocks of images. In this way, images can be retrieved automatically by sending a query to the site. The query may include the destination or the destination, along with one or more concepts identified by the chat system.

Once a set of images are acquired, each of the images are analyzed to determine what is depicted in each respective image. The image analysis can be accomplished in any desired manner. In one example, a third party service, such as the service provided by Clarifai (https://clarifai.com/) is used to analyze images. In particular, concepts may be identified in each of the images (STEP 1330). For each concept identified, a score (e.g., probability) is calculated (STEP 1340). Such a score may relate to the probability that a concept is depicted in, or related to, the image. It will be noted that the image acquisition and determination of concepts or scores may be determined before a request is received by a data service and may be stored in a data store utilized by the system (e.g., chat system).

FIG. 15 illustrates an example of an image that has been analyzed by a service such as Clarifai to identify concepts and probabilities. In the example shown, an image 1500 of Austin, Tex. is analyzed. In response, a plurality of predicted concepts 1510 are listed, and for each concept 1510, a probability 1520 is shown. In the example shown, the concept “city” is predicted with a probability of 0.988, meaning that it is highly likely the image 1500 depicts a city. Other concepts, for example, “river” (probability of 0.885), is most likely depicted in the image, but not with as high of a certainty as “city.” In accordance with this example, then, such an image may be stored in association with the destination “Austin, Tex.”, associated with the concepts “city” and the score 0.988 and the concept “river” and the associated score 0.855.

Returning to FIG. 13, once the predicted concepts and corresponding scores are determined for an image, the predicted concepts and corresponding scores are converted or mapped (if necessary) to conform to the concepts system used to select and rank the images (STEP 1350). These may be, for example, the set of concepts included in a concept net relationship matrix for the system.

In particular, it is possible that the predicted concepts from a third party service (such as Clarifai) will not exactly match the set of concepts used by the system or used to rank images. For example, concepts used in the concept net relationship matrix or the matrix of trie scores as discussed above may not all match concepts from Clarifai. In some examples, an unmatched Clarifai concept may have a synonym trie concept (e.g., may be stored as a synonym of a concept of the trie). In that case, the concept can be converted (renamed) to match the trie concept. In some examples, an unmatched Clarifai concept can be ignored if there is no close synonym, or if it is a concept that is not desired. With respect to the probabilities provided by Clarifai, a concept score in the trie or the concept net relationship matrix can correspond to the Clarifai probability, or can be modified, as desired.

In one embodiment, once a set of concept and associated scores are determined for an image, an image concept vector may be determined for the image using the concept net vector matrix. Such an image concept vector may include a score for each of the concepts as utilized by the system (e.g., as included in the concept net vector matrix). This may be determined by performing vector multiplication between a column or row in the concept net vector matrix corresponding to a concept for which a score has been determined (e.g. “city” or “river” in the example above). In this manner, the consanguinity between a determined concept for the image and the other concepts as utilized by the system may be determined. In another embodiment, some combination of the scores for the concepts for which a score has been determined for the image (e.g. “city” or “river” in the example above) may be determined. This combined score can then be used in association with the scores between those determined concepts and every other concept in the concept net vector matrix. For example, to determine a score for the image for a particular undetermined concept, the score between each determined concept and the undetermined concept can be determined from the concept net vector matrix. The combined score determined from the scores for the determined concept can then be combined (e.g., multiplied) with the scores determined between each determined concept and the undetermined concept to determine a score for the undetermined concept for that image. The scores determined for each determined concept for the image can be combined with the scores determined for each undetermined concept for the image to form the image concept vector.

Accordingly, after the images are analyzed, the set of images for a given destination are ranked and selected (STEP 1360). The ranking of images can be based on any criteria, depending information available and desired results. In one example, images are ranked based on concepts received in the request. Generally, if the system determines that a user is interested in a particular concept (e.g., “surfing”), images can be ranked based on the “surfing” concept score associated with each image (e.g., as determined from the image concept vector associated with the image). Where multiple concepts are identified by the system (e.g., based on a user interaction or as submitted to a destination data service), the concept scores can be added for ranking purposes. If desired, concept scores are weighted, so that important concepts have a higher effect on ranking than less important concepts. For example, certain concepts can be considered to be important, such as “architecture”, “museums”, etc., versus less important concepts such as “fine dining”, “animals”, etc. If a user is interested in “fine dining”, it is more desirable to provide an image of food with the city skyline or a gorgeous restaurant standing in the center of the city, versus a close-up view of food. Therefore, while the concept “fine dining” is still considered in the ranking, it is considered along with the important concepts. This can be accomplished using weights to rank images having scores for both the identified concepts and the important concepts.

In another embodiment, where no concepts are provided by the chat system, the images can be ranked as depicted in the flow diagram of FIG. 14. Note that the embodiment of the method for image selection depicted in FIG. 14 could also be used when concepts are provided. In this embodiment, images may be ranked based on a weighted sum of the trie or concept scores, where “important” concepts are given more weight than less important concepts. However, as mentioned above, it may not be desired to end up with a group of very similar images. For example, if the destination is “San Francisco”, it may not be desired to display 30 images of the Golden Gate Bridge. Instead, it may be desired to include a variety of images, even if it means images with higher trie scores are ranked lower than other images. The embodiment as depicted in FIG. 14 may be utilized to obtain such a variety of images.

Initially, the images are ranked based on scores (STEP 1410), as described above. Based on the scores, a first image is selected (STEP 1420). Once a first image is selected, the system determines whether other images are similar to the first selected image. This determination can be accomplished in any desired manner. Similarity can be determined by comparing trie scores or concept net vector matrix scores of the important concepts. The more similar an image is to the first selected image (e.g., when an image has similar scores of the important concepts), the more it will be penalized for the purpose of selecting the second image. For example, assume image1 was selected based on high scores for “architecture” and “museums”. If image2 has the same or similar scores for “architecture” and “museums”, it will be penalized more than image3 that scores low for “architecture” and “museums”. In one example, images are penalized by subtracting a number from its weighted sum of trie scores. Accordingly, a penalty is selectively applied to the remaining (the non-selected) images based on their similarity to the previously selected image(s) (STEP 1430). In one example, the penalty can be a constant number applied to images that meet a similarity threshold. In another example, the penalty can vary depending on the degree of similarity.

Once the penalty is applied to certain remaining images, all of the remaining images are re-ranked, taking the penalty into account (STEP 1440). Based on the re-ranking, a second image is selected (STEP 1450). It can then be determined if enough images have been selected (STEP 1460). If so, the method ends. If not, the method repeats (STEPS 1430-1460) until a desired number of images are selected. For example, the second time through the loop, a similarity is determined between the remaining images and the previously selected image (in this case, the first image) (STEP 1430). Similarity can be determined in any desired manner. In one example, the remaining images (with their adjusted scores from the first penalty application) are compared for similarity to the second selected image and penalized based on their similarity to the second image. In another example, the scores of some or all previously selected images can be averaged, with similarity based on the average scores. In any event, each time through the loop (STEPS 1430-1460), the scores may be re-adjusted and the images re-ranked. The end result is that the selected images will be diverse, while still being based on high scores (e.g., for concepts being utilized to score the images, such as those received in a request for a destination or image).

In some examples, a user may be searching for a concept that is not associated with one or more of the images for the relevant destination. For example, assume a search is being conducted for the concept “lake”, but none of the images are tagged with “lake.” It may be desirable to include an image of a beach, since “lake” and “beach” are similar. This can be accomplished using the concepts as found in the concept network. As discussed above, a concept network, such as a trie, can be thought of as a search tree structure used to store a dynamic set or associative array of concepts. For example, a trie will have various parent nodes and child nodes. In the example above, the trie may have a “water” node with “lake” and “beach” being child nodes to “water.”

FIG. 16 is a diagram depicting a portion of a trie with nodes for concepts “water,” “lake,” and “beach.” As shown, water node 1610 is a parent to lake node 1620 and beach node 1630. FIG. 16 also shows lines illustrating the relation (e.g., bi-directional) between the parent node 1610 and the child nodes 1620 and 1630. Such relations may, or may not, be included in a trie, and may be determined based on a variety of criteria or heuristics as discussed. Generally, a child node will be very related to a parent node (thus the “distance” factor 0.1). For example, a picture of a lake or a beach is highly likely to include water. The “distance” from the parent node 1610 to the child nodes 1620 and 1630 are longer, since they are less related. For example, a picture of water does not necessarily include a lake or beach, but could. In other words, if the concept is “lake”, you may not necessarily want an image of “water”, but if the concept is “water,” then it may be acceptable to return an image of a lake. The distances 0.5 and 0.1 are merely exemplary, for the purposes of discussion.

In the example discussed above, it was assumed that a search is being conducted for the concept “lake”, but none of the images are tagged with “lake.” Although none of the images are tagged with the concept “lake,” the system can still generate a score for “lake.” Concepts that are included in an image can be mapped to “lake”, and the score of the shortest path can be used. Note that FIG. 16 is only a partial view of an example trie used for illustrative purposes, and that an actual trie may include all concepts utilized by a system or multiple tries may be used, etc. In this example, the shortest path to lake node 1620 is from beach node 1630, through parent water node 1610, to lake node 1620. A “lake” score can be calculated by adding the total distance from beach node 1630 to lake node 1620. In this example, the distance from beach node 1630 to lake node 1620 is 0.5 plus 0.1, totaling a distance of 0.6. So, if a user searches for a lake image, and the system cannot find a lake image, it will try to find a water image. If the system cannot find a water image, it may provide a beach image.

In the example above, assume that the beach image has a beach concept score of 0.9. The system will convert that score to a lake concept score using the calculated distance. In one example, the system a matrix is created for each image that will have scores for the concepts, even when Clarifai did not include a concept and probability/score. For example, the concept net relationship matrix may be used. As another example, a matrix is populated as discussed above, using the shortest distance between a missing score and an existing score (like with concepts lake and beach above).

In one example, a trie includes on the order of 1400 concepts, so the matrix will be 1400×1400 in size, with a distance value for each possible pair of concepts as discussed. When the scores are put together (for example, adding the lake score in the above example) the end result is like a weighted sum. In our example, for concept beach, the distance is 0.0, since beach has a score. In this case, for beach, the other distances are meaningless and ignored. In our example, the lake score will be equal to the beach score, multiplied by the distance (in this case 0.6).

In some examples, each time an image is ingested, the matrix is generated, so you have a fully populated matrix with scores for every concept (for example, including the lake concept discussed above). In some examples, these matrices are stored in Elasticsearch.

Note that the matrix becomes a combination of variables for the x and y concepts. By tweaking the x and y values of concepts, you can tweak the final scores to make the results as close to desired as possible. By “as close as desired”, it is meant that sometimes, an implementation will need a “gold standard.” For example, when a system is implemented, certain “gold standards” may be desired. For example, for destination “City1”, it may be desired that the results should include an image of “Museum1”. The various weights and scores can be tweaked such that an image that includes “Museum1” likely to be included in the results.

Reference is now made to the Appendices which may aid in understanding of certain embodiments. Appendices B and C show examples of API queries/responses for the Destination AI API discussed above. Appendices B and C show API query/response examples. Each example shows a URL and full query. Each example also shows the API response (e.g., in a json file).

Appendix B (B1/B2) shows an example of a standard concept search (here, for the concept “Hiking”). In this example, the query (Appendix B1) also specifies the region “United States”. As shown, the query includes a geo_shape filter that will limit the API response (Appendix B2) to destinations within the United States.

Appendix C (C1/C2) show an example of details of a query for a known destination (here, for the destination “Venice”). As shown, the API response (Appendix C2) includes various concepts and their associated scores with respect to Venice returned by a destination service.

These, and other, aspects of the disclosure and various features and advantageous details thereof are explained more fully with reference to the exemplary, and therefore non-limiting, embodiments illustrated and detailed in the accompanying appendices. It should be understood, however, that the detailed description and the specific examples, while indicating the some embodiments, are given by way of illustration only and not by way of limitation. Descriptions of known programming techniques, computer software, hardware, operating platforms and protocols may be omitted so as not to unnecessarily obscure the disclosure in detail. Various substitutions, modifications, additions or rearrangements within the spirit or scope of the underlying inventive subject matter will become apparent to those skilled in the art from this disclosure, including the accompanying appendices.

Although the invention has been described with respect to specific embodiments thereof, these embodiments are merely illustrative, and not restrictive of the invention. The description herein of illustrated embodiments of the invention, including the description in the Abstract and Summary, is not intended to be exhaustive or to limit the invention to the precise forms disclosed herein (and in particular, the inclusion of any particular embodiment, feature or function within the Abstract or Summary is not intended to limit the scope of the invention to such embodiment, feature or function). Rather, the description is intended to describe illustrative embodiments, features and functions in order to provide a person of ordinary skill in the art context to understand the invention without limiting the invention to any particularly described embodiment, feature or function, including any such embodiment feature or function described in the Abstract or Summary. While specific embodiments of, and examples for, the invention are described herein for illustrative purposes only, various equivalent modifications are possible within the spirit and scope of the invention, as those skilled in the relevant art will recognize and appreciate. As indicated, these modifications may be made to the invention in light of the foregoing description of illustrated embodiments of the invention and are to be included within the spirit and scope of the invention. Thus, while the invention has been described herein with reference to particular embodiments thereof, a latitude of modification, various changes and substitutions are intended in the foregoing disclosures, and it will be appreciated that in some instances some features of embodiments of the invention will be employed without a corresponding use of other features without departing from the scope and spirit of the invention as set forth. Therefore, many modifications may be made to adapt a particular situation or material to the essential scope and spirit of the invention.

Reference throughout this specification to “one embodiment”, “an embodiment”, or “a specific embodiment” or similar terminology means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment and may not necessarily be present in all embodiments. Thus, respective appearances of the phrases “in one embodiment”, “in an embodiment”, or “in a specific embodiment” or similar terminology in various places throughout this specification are not necessarily referring to the same embodiment. Furthermore, the particular features, structures, or characteristics of any particular embodiment may be combined in any suitable manner with one or more other embodiments. It is to be understood that other variations and modifications of the embodiments described and illustrated herein are possible in light of the teachings herein and are to be considered as part of the spirit and scope of the invention.

In the description herein, numerous specific details are provided, such as examples of components or methods, to provide a thorough understanding of embodiments of the invention. One skilled in the relevant art will recognize, however, that an embodiment may be able to be practiced without one or more of the specific details, or with other apparatus, systems, assemblies, methods, components, materials, parts, or the like. In other instances, well-known structures, components, systems, materials, or operations are not specifically shown or described in detail to avoid obscuring aspects of embodiments of the invention. While the invention may be illustrated by using a particular embodiment, this is not and does not limit the invention to any particular embodiment and a person of ordinary skill in the art will recognize that additional embodiments are readily understandable and are a part of this invention.

Embodiments discussed herein can be implemented in a computer communicatively coupled to a network (for example, the Internet), another computer, or in a standalone computer. As is known to those skilled in the art, a suitable computer can include a central processing unit (“CPU”), at least one read-only memory (“ROM”), at least one random access memory (“RAM”), at least one hard drive (“HD”), and one or more input/output (“I/O”) device(s). The I/O devices can include a keyboard, monitor, printer, electronic pointing device (for example, mouse, trackball, stylus, touch pad, etc.), or the like.

ROM, RAM, and HD are computer memories for storing computer-executable instructions executable by the CPU or capable of being compiled or interpreted to be executable by the CPU. Suitable computer-executable instructions may reside on a computer readable medium (e.g., ROM, RAM, or HD), hardware circuitry or the like, or any combination thereof. Within this disclosure, the term “computer readable medium” is not limited to ROM, RAM, and HD and can include any type of data storage medium that can be read by a processor. For example, a computer-readable medium may refer to a data cartridge, a data backup magnetic tape, a floppy diskette, a flash memory drive, an optical data storage drive, a CD-ROM, ROM, RAM, HD, or the like. The processes described herein may be implemented in suitable computer-executable instructions that may reside on a computer readable medium (for example, a disk, CD-ROM, a memory, etc.). Alternatively, the computer-executable instructions may be stored as software code components on a direct access storage device array, magnetic tape, floppy diskette, optical storage device, or other appropriate computer-readable medium or storage device.

Any suitable programming language can be used to implement the routines, methods or programs of embodiments of the invention described herein, including C, C++, Java, JavaScript, HTML, or any other programming or scripting code, etc. Other software/hardware/network architectures may be used. For example, the functions of the disclosed embodiments may be implemented on one computer or shared/distributed among two or more computers in or across a network. Communications between computers implementing embodiments can be accomplished using any electronic, optical, radio frequency signals, or other suitable methods and tools of communication in compliance with known network protocols.

Different programming techniques can be employed such as procedural or object oriented. Any particular routine can execute on a single computer processing device or multiple computer processing devices, a single computer processor or multiple computer processors. Data may be stored in a single storage medium or distributed through multiple storage mediums, and may reside in a single database or multiple databases (or other data storage techniques). Although the steps, operations, or computations may be presented in a specific order, this order may be changed in different embodiments. In some embodiments, to the extent multiple steps are shown as sequential in this specification, some combination of such steps in alternative embodiments may be performed at the same time. The sequence of operations described herein can be interrupted, suspended, or otherwise controlled by another process, such as an operating system, kernel, etc. The routines can operate in an operating system environment or as stand-alone routines. Functions, routines, methods, steps and operations described herein can be performed in hardware, software, firmware or any combination thereof.

Embodiments described herein can be implemented in the form of control logic in software or hardware or a combination of both. The control logic may be stored in an information storage medium, such as a computer-readable medium, as a plurality of instructions adapted to direct an information processing device to perform a set of steps disclosed in the various embodiments. Based on the disclosure and teachings provided herein, a person of ordinary skill in the art will appreciate other ways or methods to implement the invention.

It is also within the spirit and scope of the invention to implement in software programming or code an of the steps, operations, methods, routines or portions thereof described herein, where such software programming or code can be stored in a computer-readable medium and can be operated on by a processor to permit a computer to perform any of the steps, operations, methods, routines or portions thereof described herein. The invention may be implemented by using software programming or code in one or more general purpose digital computers, by using application specific integrated circuits, programmable logic devices, field programmable gate arrays, optical, chemical, biological, quantum or nanoengineered systems, components and mechanisms may be used. In general, the functions of the invention can be achieved by any means as is known in the art. For example, distributed, or networked systems, components and circuits can be used. In another example, communication or transfer (or otherwise moving from one place to another) of data may be wired, wireless, or by any other means.

A “computer-readable medium” may be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, system or device. The computer readable medium can be, by way of example only but not by limitation, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, system, device, propagation medium, or computer memory. Such computer-readable medium shall generally be machine readable and include software programming or code that can be human readable (e.g., source code) or machine readable (e.g., object code). Examples of non-transitory computer-readable media can include random access memories, read-only memories, hard drives, data cartridges, magnetic tapes, floppy diskettes, flash memory drives, optical data storage devices, compact-disc read-only memories, and other appropriate computer memories and data storage devices. In an illustrative embodiment, some or all of the software components may reside on a single server computer or on any combination of separate server computers. As one skilled in the art can appreciate, a computer program product implementing an embodiment disclosed herein may comprise one or more non-transitory computer readable media storing computer instructions translatable by one or more processors in a computing environment.

A “processor” includes any, hardware system, mechanism or component that processes data, signals or other information. A processor can include a system with a general-purpose central processing unit, multiple processing units, dedicated circuitry for achieving functionality, or other systems. Processing need not be limited to a geographic location, or have temporal limitations. For example, a processor can perform its functions in “real-time,” “offline,” in a “batch mode,” etc. Portions of processing can be performed at different times and at different locations, by different (or the same) processing systems.

It will also be appreciated that one or more of the elements depicted in the drawings/figures can also be implemented in a more separated or integrated manner, or even removed or rendered as inoperable in certain cases, as is useful in accordance with a particular application. Additionally, any signal arrows in the drawings/figures should be considered only as exemplary, and not limiting, unless otherwise specifically noted.

As used herein, the terms “comprises,” “comprising,” “includes,” “including,” “has,” “having,” or any other variation thereof, are intended to cover a non-exclusive inclusion. For example, a process, product, article, or apparatus that comprises a list of elements is not necessarily limited only those elements but may include other elements not expressly listed or inherent to such process, product, article, or apparatus.

Furthermore, the term “or” as used herein is generally intended to mean “and/or” unless otherwise indicated. For example, a condition A or B is satisfied by any one of the following: A is true (or present) and B is false (or not present), A is false (or not present) and B is true (or present), and both A and B are true (or present). As used herein, a term preceded by “a” or “an” (and “the” when antecedent basis is “a” or “an”) includes both singular and plural of such term (i.e., that the reference “a” or “an” clearly indicates only the singular or only the plural). Also, as used in the description herein, the meaning of “in” includes “in” and “on” unless the context clearly dictates otherwise. 

What is claimed is:
 1. A artificial intelligence system, comprising: a processor; and a data store, storing a destination concept vector for each of a set of destinations and destination content for each of the set of destinations, wherein the destination content for each destination includes a set of images for the destination and each of the set of images is associated with an image concept vector; a non-transitory computer-readable medium comprising instructions for: receiving a request, the request including a current interaction entered by a user in an interface displayed at the user device; determining a canonical concept based on the current interaction; determining a destination associated with the canonical concept; determining content related to the canonical concept and the destination, including an image, where determining an image comprises: accessing the set of images associated with the destination; determining a score associated with the canonical concept for each of the set of images based on the image concept vector associated with each of the set of images; and selecting the image from the set of images based on the score associated with the canonical concept for each of the set of images; receiving the content related to the canonical concept and the destination from the destination data service; forming a response to the current iteration including the content related to the canonical concept, destination; and returning the response to the request wherein the response is adapted to be rendered at the user device in the interface displayed at the user device by presenting the content in the interface such that the content presented in the interface is synchronized with the canonical concept.
 2. The system of claim 1, wherein determining the destination associated with the canonical concept is determined comprises: determining a score for the canonical concept for each destination in the set of destinations, wherein determining a score for the canonical concept for the destination comprises accessing the destination concept vector associated with the destination to determine the score for the canonical concept for the destination and selecting the destination based on the score for the canonical concept for each destination in the set of destinations.
 3. The system of claim 1, wherein the destination is a neighborhood, apartment, or house.
 4. The system of claim 1, wherein the current interaction is a natural language interaction.
 5. The system of claim 1, wherein the image concept vector for the image was determined by: determining one or more concepts associated with the image; determining a score for the one or more concepts associated with the image and applying the score for the one or more concepts associated with the image to a concept net relationship matrix.
 6. The system of claim 1, wherein the canonical concept is based on one or more previous user interactions in a session associated with the user.
 7. The system of claim 1, wherein the image is selected based on its similarity to other images in the set of images.
 8. A non-transitory computer readable medium, comprising instructions for: receiving a request, the request including a current interaction entered by a user in an interface displayed at the user device; determining a canonical concept based on the current interaction; determining a destination associated with the canonical concept; determining content related to the canonical concept and the destination, including an image, where determining an image comprises: accessing the set of images associated with the destination in a data store storing a destination concept vector for each of a set of destinations and destination content for each of the set of destinations, wherein the destination content for each destination includes the set of images for the destination and each of the set of images is associated with an image concept vector; determining a score associated with the canonical concept for each of the set of images based on the image concept vector associated with each of the set of images; and selecting the image from the set of images based on the score associated with the canonical concept for each of the set of images; receiving the content related to the canonical concept and the destination from the destination data service; forming a response to the current iteration including the content related to the canonical concept, destination; and returning the response to the request wherein the response is adapted to be rendered at the user device in the interface displayed at the user device by presenting the content in the interface such that the content presented in the interface is synchronized with the canonical concept.
 9. The non-transitory computer readable medium of claim 8, wherein determining the destination associated with the canonical concept is determined comprises: determining a score for the canonical concept for each destination in the set of destinations, wherein determining a score for the canonical concept for the destination comprises accessing the destination concept vector associated with the destination to determine the score for the canonical concept for the destination and selecting the destination based on the score for the canonical concept for each destination in the set of destinations.
 10. The non-transitory computer readable medium of claim 8, wherein the destination is a neighborhood, apartment, or house.
 11. The non-transitory computer readable medium of claim 8, wherein the current interaction is a natural language interaction.
 12. The non-transitory computer readable medium of claim 8, wherein the image concept vector for the image was determined by: determining one or more concepts associated with the image; determining a score for the one or more concepts associated with the image and applying the score for the one or more concepts associated with the image to a concept net relationship matrix.
 13. The non-transitory computer readable medium of claim 8, wherein the canonical concept is based on one or more previous user interactions in a session associated with the user.
 14. The non-transitory computer readable medium of claim 8, wherein the image is selected based on its similarity to other images in the set of images.
 15. A method, comprising: receiving a request, the request including a current interaction entered by a user in an interface displayed at the user device; determining a canonical concept based on the current interaction; determining a destination associated with the canonical concept; determining content related to the canonical concept and the destination, including an image, where determining an image comprises: accessing the set of images associated with the destination in a data store storing a destination concept vector for each of a set of destinations and destination content for each of the set of destinations, wherein the destination content for each destination includes the set of images for the destination and each of the set of images is associated with an image concept vector; determining a score associated with the canonical concept for each of the set of images based on the image concept vector associated with each of the set of images; and selecting the image from the set of images based on the score associated with the canonical concept for each of the set of images; receiving the content related to the canonical concept and the destination from the destination data service; forming a response to the current iteration including the content related to the canonical concept, destination; and returning the response to the request wherein the response is adapted to be rendered at the user device in the interface displayed at the user device by presenting the content in the interface such that the content presented in the interface is synchronized with the canonical concept.
 16. The method of claim 15, wherein determining the destination associated with the canonical concept is determined comprises: determining a score for the canonical concept for each destination in the set of destinations, wherein determining a score for the canonical concept for the destination comprises accessing the destination concept vector associated with the destination to determine the score for the canonical concept for the destination and selecting the destination based on the score for the canonical concept for each destination in the set of destinations.
 17. The method of claim 15, wherein the destination is a neighborhood, apartment, or house.
 18. The method of claim 15, wherein the current interaction is a natural language interaction.
 19. The method of claim 15, wherein the image concept vector for the image was determined by: determining one or more concepts associated with the image; determining a score for the one or more concepts associated with the image and applying the score for the one or more concepts associated with the image to a concept net relationship matrix.
 20. The method of claim 15, wherein the canonical concept is based on one or more previous user interactions in a session associated with the user.
 21. The method of claim 15, wherein the image is selected based on its similarity to other images in the set of images. 